1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Prevent crash

This commit is contained in:
M66B 2020-03-20 08:01:35 +01:00
parent 2165f062b2
commit db0fc6d49e

View file

@ -4432,6 +4432,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
Context context = getContext();
if (context == null)
return false;
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
return false;
boolean up = (event.getAction() == ACTION_UP);