Prevent crash

pull/208/head
M66B 2 years ago
parent ab988e4d6a
commit 3058a143da

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

Loading…
Cancel
Save