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

Commit 971ebb4a authored by Svet Ganov's avatar Svet Ganov Committed by gitbuildkicker
Browse files

Check for non-null parent before delegating to it

Test: manual

bug:37289681

Change-Id: If3055747471d4b7771256d8adaaa08b73641c09d
(cherry picked from commit 3a74243a)
parent c51daa3a
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -6970,8 +6970,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            dispatchPopulateAccessibilityEvent(event);
            dispatchPopulateAccessibilityEvent(event);
        }
        }
        // In the beginning we called #isShown(), so we know that getParent() is not null.
        // In the beginning we called #isShown(), so we know that getParent() is not null.
        ViewParent parent = getParent();
        if (parent != null) {
            getParent().requestSendAccessibilityEvent(this, event);
            getParent().requestSendAccessibilityEvent(this, event);
        }
        }
    }
    /**
    /**
     * Dispatches an {@link AccessibilityEvent} to the {@link View} first and then
     * Dispatches an {@link AccessibilityEvent} to the {@link View} first and then