Prevent crash

This commit is contained in:
M66B 2020-07-14 21:30:08 +02:00
parent 3383b73a90
commit 488fac7e09
1 changed files with 1 additions and 1 deletions

View File

@ -3710,7 +3710,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
} }
private void onMenuFolders(long account) { private void onMenuFolders(long account) {
if (isDetached()) if (!isAdded())
return; return;
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))