Skip to content

Commit

Permalink
stop keepaliveservice while quiting app
Browse files Browse the repository at this point in the history
  • Loading branch information
zfdang committed Jul 26, 2024
1 parent f3841a9 commit 479a11e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/zfdang/zsmth_android/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,10 @@ private void DoubleBackToExit() {
}

private void quitNow() {
// stop keep alive service
if (keepAliveService != null)
stopService(keepAliveService);

// quit
finish();
android.os.Process.killProcess(android.os.Process.myPid());
Expand Down

0 comments on commit 479a11e

Please sign in to comment.