mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
dc69b597ab
commit
75f6d118a2
|
@ -4440,7 +4440,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onItemSelected(@NonNull ViewHolder holder, boolean selected) {
|
public void onItemSelected(@NonNull ViewHolder holder, boolean selected) {
|
||||||
if (accessibility) {
|
if (accessibility && holder.view != null) {
|
||||||
AccessibilityEvent event = AccessibilityEvent.obtain();
|
AccessibilityEvent event = AccessibilityEvent.obtain();
|
||||||
holder.view.onInitializeAccessibilityEvent(event);
|
holder.view.onInitializeAccessibilityEvent(event);
|
||||||
event.setEventType(AccessibilityEvent.TYPE_VIEW_SELECTED);
|
event.setEventType(AccessibilityEvent.TYPE_VIEW_SELECTED);
|
||||||
|
|
Loading…
Reference in New Issue