1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-31 03:21:36 +00:00

Prevent crash

This commit is contained in:
M66B 2022-06-06 10:27:04 +02:00
parent ab988e4d6a
commit 3058a143da

View file

@ -7244,6 +7244,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
return true;
}
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return true;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean collapse_multiple = prefs.getBoolean("collapse_multiple", true);