implement Activity.onPostCreate() and onPostResume()

These are used by androidx to handle the Fragment lifecycle
This commit is contained in:
Julian Winkler
2024-10-05 16:52:53 +02:00
parent 21a75d7ff0
commit 1b46d728e3
4 changed files with 22 additions and 0 deletions

View File

@@ -148,6 +148,11 @@ public class Activity extends ContextThemeWrapper implements Window.Callback {
return;
}
protected void onPostCreate(Bundle savedInstanceState) {
System.out.println("- onPostCreate - yay!");
return;
}
protected void onStart() {
System.out.println("- onStart - yay!");
if (window.contentView != null)
@@ -177,6 +182,11 @@ public class Activity extends ContextThemeWrapper implements Window.Callback {
return;
}
protected void onPostResume() {
System.out.println("- onPostResume - yay!");
return;
}
protected void onPause() {
System.out.println("- onPause - yay!");