mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 10:33:41 +02:00
Prevent crash
This commit is contained in:
@@ -725,6 +725,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
if (pos == NO_POSITION)
|
||||
return null;
|
||||
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return null;
|
||||
|
||||
TupleMessageEx prev = adapter.getItemAtPosition(pos - 1);
|
||||
TupleMessageEx message = adapter.getItemAtPosition(pos);
|
||||
if (pos > 0 && prev == null)
|
||||
|
||||
Reference in New Issue
Block a user