Prevent crash

This commit is contained in:
M66B
2018-11-24 17:30:17 +01:00
parent 963c245aab
commit 00d95f0c6e
2 changed files with 9 additions and 4 deletions

View File

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