Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84bcd893 authored by sallyyuen's avatar sallyyuen
Browse files

check for null listenerInfo for drag&drop

Bug: 201778218
Test: n/a
Change-Id: I9c50a429ee409e4a040c03bba9ac28729720a929
parent f163deb7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -27059,7 +27059,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        switch (event.mAction) {
            case DragEvent.ACTION_DRAG_STARTED: {
                if (result && li.mOnDragListener != null) {
                if (result && li != null && li.mOnDragListener != null) {
                    sendWindowContentChangedAccessibilityEvent(
                            AccessibilityEvent.CONTENT_CHANGE_TYPE_UNDEFINED);
                }
@@ -27073,7 +27073,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                refreshDrawableState();
            } break;
            case DragEvent.ACTION_DROP: {
                if (result && (li.mOnDragListener != null | li.mOnReceiveContentListener != null)) {
                if (result && li != null && (li.mOnDragListener != null
                        || li.mOnReceiveContentListener != null)) {
                    sendWindowContentChangedAccessibilityEvent(
                            AccessibilityEvent.CONTENT_CHANGE_TYPE_DRAG_DROPPED);
                }