mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-29 07:41:17 +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");
|
Log.i(TAG, "Exiting app on user request");
|
||||||
mActivity.stopService(new Intent(mActivity, SyncthingService.class));
|
mActivity.stopService(new Intent(mActivity, SyncthingService.class));
|
||||||
|
if(android.os.Build.VERSION.SDK_INT >= 21) {
|
||||||
|
mActivity.finishAndRemoveTask();
|
||||||
|
} else {
|
||||||
mActivity.finish();
|
mActivity.finish();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue