Prevent crash

pull/146/head
M66B 7 years ago
parent 963c245aab
commit 00d95f0c6e

@ -708,6 +708,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
}
private void onMenuFolders(long account) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
getSupportFragmentManager().popBackStack("unified", 0);
Bundle args = new Bundle();
@ -790,7 +791,9 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
}
private void onShowLog() {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
getSupportFragmentManager().popBackStack("logs", FragmentManager.POP_BACK_STACK_INCLUSIVE);
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.content_frame, new FragmentLogs()).addToBackStack("logs");
fragmentTransaction.commit();
@ -1081,6 +1084,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
}
private void onViewThread(Intent intent) {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
getSupportFragmentManager().popBackStack("thread", FragmentManager.POP_BACK_STACK_INCLUSIVE);
Bundle args = new Bundle();

@ -1135,6 +1135,7 @@ public class FragmentMessages extends FragmentEx {
}
private void onMenuFolders() {
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
getFragmentManager().popBackStack("unified", 0);
Bundle args = new Bundle();

Loading…
Cancel
Save