1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-27 16:33:47 +00:00

Prevent crash

This commit is contained in:
M66B 2019-12-22 16:51:05 +01:00
parent 5a9013e0c7
commit 74f2aa0e57

View file

@ -3018,14 +3018,19 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
model.getIds(getContext(), getViewLifecycleOwner(), new Observer<List<Long>>() {
@Override
public void onChanged(List<Long> ids) {
selectionTracker.clearSelection();
for (long id : ids)
selectionTracker.select(id);
new Handler().post(new Runnable() {
@Override
public void run() {
selectionTracker.clearSelection();
for (long id : ids)
selectionTracker.select(id);
ToastEx.makeText(getContext(),
getContext().getResources().getQuantityString(
R.plurals.title_selected_conversations, ids.size(), ids.size()),
Toast.LENGTH_LONG).show();
ToastEx.makeText(getContext(),
getContext().getResources().getQuantityString(
R.plurals.title_selected_conversations, ids.size(), ids.size()),
Toast.LENGTH_LONG).show();
}
});
}
});
}