mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-28 08:46:01 +00:00
Prevent crash
This commit is contained in:
parent
5a9013e0c7
commit
74f2aa0e57
1 changed files with 12 additions and 7 deletions
|
@ -3018,6 +3018,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
model.getIds(getContext(), getViewLifecycleOwner(), new Observer<List<Long>>() {
|
model.getIds(getContext(), getViewLifecycleOwner(), new Observer<List<Long>>() {
|
||||||
@Override
|
@Override
|
||||||
public void onChanged(List<Long> ids) {
|
public void onChanged(List<Long> ids) {
|
||||||
|
new Handler().post(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
selectionTracker.clearSelection();
|
selectionTracker.clearSelection();
|
||||||
for (long id : ids)
|
for (long id : ids)
|
||||||
selectionTracker.select(id);
|
selectionTracker.select(id);
|
||||||
|
@ -3029,6 +3032,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private void onMenuEmpty(String type) {
|
private void onMenuEmpty(String type) {
|
||||||
Bundle aargs = new Bundle();
|
Bundle aargs = new Bundle();
|
||||||
|
|
Loading…
Reference in a new issue