mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
edb35d8147
commit
cdcf132c47
|
@ -4744,11 +4744,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
|
||||
public void onItemSelected(@NonNull ViewHolder holder, boolean selected) {
|
||||
if (accessibility && holder.view != null) {
|
||||
if (accessibility && holder.view != null)
|
||||
try {
|
||||
AccessibilityEvent event = AccessibilityEvent.obtain();
|
||||
holder.view.onInitializeAccessibilityEvent(event);
|
||||
event.setEventType(AccessibilityEvent.TYPE_VIEW_SELECTED);
|
||||
holder.view.getParent().requestSendAccessibilityEvent(holder.view, event);
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue