Skip to content

Commit

Permalink
better finish application on Exit command
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak committed Jul 31, 2018
1 parent ce16dd7 commit be558e1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,9 +432,8 @@ public boolean onOptionsItemSelected(MenuItem item) {
MainApp.instance().stopKeepAliveService();
MainApp.bus().post(new EventAppExit());
MainApp.closeDbHelper();
finish();
finishAndRemoveTask();
System.runFinalization();
System.exit(0);
return true;
case R.id.nav_plugin_preferences:
ViewPager viewPager = findViewById(R.id.pager);
Expand Down

0 comments on commit be558e1

Please sign in to comment.