diff --git a/forge-gui-android/src/forge/app/Exiter.java b/forge-gui-android/src/forge/app/Exiter.java index f026335c5f5..25709ba2ea0 100644 --- a/forge-gui-android/src/forge/app/Exiter.java +++ b/forge-gui-android/src/forge/app/Exiter.java @@ -6,9 +6,5 @@ import android.os.Bundle; public class Exiter extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { - finish(); - - //ensure process fully killed - System.exit(0); } } diff --git a/forge-gui-android/src/forge/app/Main.java b/forge-gui-android/src/forge/app/Main.java index 47955a113c8..c235fb01ef2 100644 --- a/forge-gui-android/src/forge/app/Main.java +++ b/forge-gui-android/src/forge/app/Main.java @@ -207,14 +207,10 @@ public class Main extends AndroidApplication { @Override public void exit() { - // Replace the current task with one that is excluded from the recent - // apps and that will finish itself immediately. It's critical that this - // activity get launched in the task that you want to hide. - final Intent relaunch = new Intent(getApplicationContext(), Exiter.class) - .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK // CLEAR_TASK requires this - | Intent.FLAG_ACTIVITY_CLEAR_TASK // finish everything else in the task - | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); // hide (remove, in this case) task from recents - startActivity(relaunch); + finish(); + + //ensure process fully killed + System.exit(0); } @Override