mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-25 22:01:16 +00:00
parent
b05430bedb
commit
5c04dab7b2
1 changed files with 5 additions and 1 deletions
|
@ -287,6 +287,10 @@ public class DrawerFragment extends Fragment implements View.OnClickListener {
|
|||
}
|
||||
Log.i(TAG, "Exiting app on user request");
|
||||
mActivity.stopService(new Intent(mActivity, SyncthingService.class));
|
||||
mActivity.finish();
|
||||
if(android.os.Build.VERSION.SDK_INT >= 21) {
|
||||
mActivity.finishAndRemoveTask();
|
||||
} else {
|
||||
mActivity.finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue