Prevent crash

This commit is contained in:
M66B 2020-03-20 08:01:35 +01:00
parent 2165f062b2
commit db0fc6d49e
1 changed files with 2 additions and 0 deletions

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);