api-impl: add misc stubs/impls

This commit is contained in:
Mis012
2024-06-13 21:00:06 +02:00
parent 725df91af9
commit 81797c2667
13 changed files with 92 additions and 8 deletions

View File

@@ -41,6 +41,7 @@ public class Activity extends ContextWrapper implements Window.Callback {
private boolean paused = false;
private CharSequence title = null;
List<Fragment> fragments = new ArrayList<>();
boolean destroyed = false;
/**
* Helper function to be called from native code to construct main activity
@@ -204,6 +205,7 @@ public class Activity extends ContextWrapper implements Window.Callback {
fragment.onDestroy();
}
destroyed = true;
return;
}
@@ -482,6 +484,10 @@ public class Activity extends ContextWrapper implements Window.Callback {
return true; // FIXME?
}
public boolean isDestroyed() {
return destroyed;
}
private native void nativeFinish(long native_window);
public static native void nativeRecreateActivity(Activity activity);
public static native void nativeStartActivity(Activity activity);