mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
2165f062b2
commit
db0fc6d49e
|
@ -4432,6 +4432,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
if (context == null)
|
if (context == null)
|
||||||
return false;
|
return false;
|
||||||
|
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
|
||||||
|
return false;
|
||||||
|
|
||||||
boolean up = (event.getAction() == ACTION_UP);
|
boolean up = (event.getAction() == ACTION_UP);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue