Skip to content

Commit

Permalink
Add override annotations in Android activity code
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jan 16, 2025
1 parent e3fb0b9 commit 08c9679
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ void handleSendText(Intent intent) {
}
}

@Override
public void onCreate(Bundle savedInstanceState) {
Log.i(TAG, "Creating");
super.onCreate(savedInstanceState);
Expand All @@ -127,16 +128,19 @@ public void onCreate(Bundle savedInstanceState) {
}
}

@Override
public void onStart() {
Log.i(TAG, "Starting");
super.onStart();
}

@Override
public void onResume() {
Log.i(TAG, "Resuming");
super.onResume();
}

@Override
public void onPause() {
Log.i(TAG, "Pausing");
super.onPause();
Expand All @@ -147,6 +151,7 @@ public void onStop() {
super.onStop();
}

@Override
public void onDestroy() {
// stop service and libsyncthing
// note: QtActivity will exit the main thread in super.onDestroy() so we cannot keep the service running.
Expand Down

0 comments on commit 08c9679

Please sign in to comment.