Qt build: QtActivity's lifecycle overrides are public
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiQsCq11CwCPnKPp9D
This commit is contained in:
1 file changed
+6
-6
@@ -97,7 +97,7 @@ public class HomeActivity extends QtActivity {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle state) {
|
public void onCreate(Bundle state) {
|
||||||
self = this;
|
self = this;
|
||||||
super.onCreate(state);
|
super.onCreate(state);
|
||||||
launcher = getSystemService(LauncherApps.class);
|
launcher = getSystemService(LauncherApps.class);
|
||||||
@@ -158,20 +158,20 @@ public class HomeActivity extends QtActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStart() {
|
public void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
widgetHost.startListening();
|
widgetHost.startListening();
|
||||||
Updater.check(this, false);
|
Updater.check(this, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onStop() {
|
public void onStop() {
|
||||||
super.onStop();
|
super.onStop();
|
||||||
widgetHost.stopListening();
|
widgetHost.stopListening();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
public void onDestroy() {
|
||||||
launcher.unregisterCallback(packages);
|
launcher.unregisterCallback(packages);
|
||||||
if (self == this) self = null;
|
if (self == this) self = null;
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
@@ -179,7 +179,7 @@ public class HomeActivity extends QtActivity {
|
|||||||
|
|
||||||
// The home button while we are already in front.
|
// The home button while we are already in front.
|
||||||
@Override
|
@Override
|
||||||
protected void onNewIntent(Intent intent) {
|
public void onNewIntent(Intent intent) {
|
||||||
super.onNewIntent(intent);
|
super.onNewIntent(intent);
|
||||||
if (qtReady) Native.homePressed();
|
if (qtReady) Native.homePressed();
|
||||||
}
|
}
|
||||||
@@ -464,7 +464,7 @@ public class HomeActivity extends QtActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onActivityResult(int req, int result, Intent data) {
|
public void onActivityResult(int req, int result, Intent data) {
|
||||||
super.onActivityResult(req, result, data);
|
super.onActivityResult(req, result, data);
|
||||||
if (pendingWidget == -1 || (req != REQ_BIND && req != REQ_CONFIGURE)) return;
|
if (pendingWidget == -1 || (req != REQ_BIND && req != REQ_CONFIGURE)) return;
|
||||||
if (result != RESULT_OK) {
|
if (result != RESULT_OK) {
|
||||||
|
|||||||
Reference in new issue
Block a user