|
|
@ -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) {
|
|
|
|
finish();
|
|
|
|
finishAndRemoveTask();
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
finish();
|
|
|
|
finishAndRemoveTask();
|
|
|
|
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");
|
|
|
|
|
|
|
|
|
|
|
|
finish();
|
|
|
|
finishAndRemoveTask();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -261,7 +261,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
public void run() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
finish();
|
|
|
|
finishAndRemoveTask();
|
|
|
|
} 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)
|
|
|
|
finish();
|
|
|
|
finishAndRemoveTask();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|