Revert "Main: finishAndRemoveTask"

This reverts commit fc398fd05e.
pull/194/merge
M66B 3 years ago
parent a4decf8215
commit 0ee761d47b

@ -128,6 +128,7 @@
<activity <activity
android:name=".ActivityMain" android:name=".ActivityMain"
android:excludeFromRecents="true"
android:exported="true" android:exported="true"
android:launchMode="singleInstance" android:launchMode="singleInstance"
android:theme="@style/Theme.AppCompat.Translucent"> android:theme="@style/Theme.AppCompat.Translucent">

@ -101,7 +101,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
@Override @Override
protected void onExecuted(Bundle args, EntityMessage message) { protected void onExecuted(Bundle args, EntityMessage message) {
finishAndRemoveTask(); finish();
if (message == null) if (message == null)
return; return;
@ -139,7 +139,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
} catch (RuntimeException ex) { } catch (RuntimeException ex) {
Log.e(ex); Log.e(ex);
// https://issuetracker.google.com/issues/181805603 // https://issuetracker.google.com/issues/181805603
finishAndRemoveTask(); finish();
startActivity(getIntent()); startActivity(getIntent());
return; return;
} }
@ -236,7 +236,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
long end = new Date().getTime(); long end = new Date().getTime();
Log.i("Main booted " + (end - start) + " ms"); Log.i("Main booted " + (end - start) + " ms");
finishAndRemoveTask(); finish();
} }
@Override @Override
@ -261,7 +261,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
@Override @Override
public void run() { public void run() {
try { try {
finishAndRemoveTask(); finish();
} catch (Throwable ex) { } catch (Throwable ex) {
Log.w(ex); Log.w(ex);
/* /*
@ -336,7 +336,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
public void onBackStackChanged() { public void onBackStackChanged() {
int count = getSupportFragmentManager().getBackStackEntryCount(); int count = getSupportFragmentManager().getBackStackEntryCount();
if (count == 0) if (count == 0)
finishAndRemoveTask(); finish();
} }
@Override @Override

Loading…
Cancel
Save