Update Main.java

This commit is contained in:
Anthony Calosa
2022-08-04 09:31:54 +08:00
committed by GitHub
parent a468d19408
commit dbe8e94900

View File

@@ -257,7 +257,7 @@ public class Main extends AndroidApplication {
} }
} }
/*@Override @Override
protected void onDestroy() { protected void onDestroy() {
try { try {
final Forge forge = (Forge) Gdx.app.getApplicationListener(); final Forge forge = (Forge) Gdx.app.getApplicationListener();
@@ -267,13 +267,10 @@ public class Main extends AndroidApplication {
e.printStackTrace(); e.printStackTrace();
} }
super.onDestroy(); super.onDestroy();
//ensure app doesn't stick around //ensure app doesn't stick around
//ActivityManager am = (ActivityManager)getSystemService(Activity.ACTIVITY_SERVICE); //ActivityManager am = (ActivityManager)getSystemService(Activity.ACTIVITY_SERVICE);
//am.killBackgroundProcesses(getApplicationContext().getPackageName()); //am.killBackgroundProcesses(getApplicationContext().getPackageName());
}
}*/
@Override @Override
protected void onPause() protected void onPause()