1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Prevent crash

This commit is contained in:
M66B 2020-01-06 09:02:54 +01:00
parent dc69b597ab
commit 75f6d118a2

View file

@ -4440,7 +4440,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
}
public void onItemSelected(@NonNull ViewHolder holder, boolean selected) {
if (accessibility) {
if (accessibility && holder.view != null) {
AccessibilityEvent event = AccessibilityEvent.obtain();
holder.view.onInitializeAccessibilityEvent(event);
event.setEventType(AccessibilityEvent.TYPE_VIEW_SELECTED);