Prevent crash

pull/184/head
M66B 4 years ago
parent 809e587e1f
commit 49b45ac612

@ -4154,8 +4154,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
for (long id : ids) for (long id : ids)
selectionTracker.select(id); selectionTracker.select(id);
ToastEx.makeText(getContext(), Context context = getContext();
getContext().getResources().getQuantityString( if (context == null)
return;
ToastEx.makeText(context,
context.getResources().getQuantityString(
R.plurals.title_selected_conversations, ids.size(), ids.size()), R.plurals.title_selected_conversations, ids.size(), ids.size()),
Toast.LENGTH_LONG).show(); Toast.LENGTH_LONG).show();
} }

Loading…
Cancel
Save