Prevent crash

pull/206/head
M66B 3 years ago
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…
Cancel
Save