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

Commit 648e6754 authored by Lucas Dupin's avatar Lucas Dupin Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE when view doesn't have a parent"

parents 87f05c34 133fdae1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3069,7 +3069,7 @@ public class NotificationPanelView extends PanelView implements
    private static float getCommonTop(View view) {
        float y = view.getTop();
        ViewGroup parent = (ViewGroup) view.getParent();
        while (!(parent instanceof StatusBarWindowView)) {
        while (!(parent instanceof StatusBarWindowView) && parent != null) {
            y += parent.getY();
            parent = (ViewGroup) parent.getParent();
        }