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

Commit 63e22878 authored by Shawn Lee's avatar Shawn Lee
Browse files

Null guard QS Header view in NSSL

Calls to mQsHeader in NSSL were causing an NPE on cuttlefish.

Bug: 306992703
Test: NA
Flag: NA
Change-Id: I94ab3f68c6aa93a8eb96b5e18fbe745ca55b3cf5
parent 8f0e9876
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3715,6 +3715,11 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
    }

    protected boolean isInsideQsHeader(MotionEvent ev) {
        if (mQsHeader == null) {
            Log.wtf(TAG, "qsHeader is null while NSSL is handling a touch");
            return false;
        }

        mQsHeader.getBoundsOnScreen(mQsHeaderBound);
        /**
         * One-handed mode defines a feature FEATURE_ONE_HANDED of DisplayArea {@link DisplayArea}