mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
7094743d23
commit
afc1a753b5
|
@ -1730,6 +1730,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
values.get(name).remove(id);
|
||||
|
||||
if ("selected".equals(name) && enabled) {
|
||||
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
||||
return;
|
||||
|
||||
final List<Integer> changed = new ArrayList<>();
|
||||
|
||||
int pos = adapter.getPositionForKey(id);
|
||||
|
|
Loading…
Reference in New Issue