Prevent crash

This commit is contained in:
M66B 2021-10-03 07:36:32 +02:00
parent 7094743d23
commit afc1a753b5
1 changed files with 3 additions and 0 deletions

View File

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