mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Prevent crash
This commit is contained in:
parent
dc69b597ab
commit
75f6d118a2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue