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

Commit 162a93ca authored by Svet Ganov's avatar Svet Ganov Committed by android-build-merger
Browse files

Check for non-null parent before delegating to it

am: 3a74243a

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