Delete silly android code.

I don't think this is necessary, it seems silly to me. I'm just deleting it.


(cherry picked from commit bf2c4b8cc6a9b2db84b81bc650140e9a29ae22b4)
This commit is contained in:
Meerkov
2018-04-18 20:58:08 -07:00
parent 8f68266585
commit 6436d6fa2a
2 changed files with 4 additions and 12 deletions

View File

@@ -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);
}
}

View File

@@ -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