mirror of https://github.com/M66B/FairEmail.git
prevent crash
This commit is contained in:
parent
f7d8ad3253
commit
19ef07ecb4
|
@ -3853,6 +3853,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
if (context == null)
|
if (context == null)
|
||||||
return;
|
return;
|
||||||
|
if (getView() == null)
|
||||||
|
return;
|
||||||
if (!getViewLifecycleOwner().getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
if (!getViewLifecycleOwner().getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue