mirror of https://github.com/M66B/FairEmail.git
parent
a4decf8215
commit
0ee761d47b
|
@ -128,6 +128,7 @@
|
|||
|
||||
<activity
|
||||
android:name=".ActivityMain"
|
||||
android:excludeFromRecents="true"
|
||||
android:exported="true"
|
||||
android:launchMode="singleInstance"
|
||||
android:theme="@style/Theme.AppCompat.Translucent">
|
||||
|
|
|
@ -101,7 +101,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
|||
|
||||
@Override
|
||||
protected void onExecuted(Bundle args, EntityMessage message) {
|
||||
finishAndRemoveTask();
|
||||
finish();
|
||||
|
||||
if (message == null)
|
||||
return;
|
||||
|
@ -139,7 +139,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
|||
} catch (RuntimeException ex) {
|
||||
Log.e(ex);
|
||||
// https://issuetracker.google.com/issues/181805603
|
||||
finishAndRemoveTask();
|
||||
finish();
|
||||
startActivity(getIntent());
|
||||
return;
|
||||
}
|
||||
|
@ -236,7 +236,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
|||
long end = new Date().getTime();
|
||||
Log.i("Main booted " + (end - start) + " ms");
|
||||
|
||||
finishAndRemoveTask();
|
||||
finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -261,7 +261,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
|||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
finishAndRemoveTask();
|
||||
finish();
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
/*
|
||||
|
@ -336,7 +336,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
|||
public void onBackStackChanged() {
|
||||
int count = getSupportFragmentManager().getBackStackEntryCount();
|
||||
if (count == 0)
|
||||
finishAndRemoveTask();
|
||||
finish();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue