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

Commit b1223018 authored by Priyank Singh's avatar Priyank Singh Committed by android-build-merger
Browse files

Merge "Handle NPE when the notification shade is opened via click on button."...

Merge "Handle NPE when the notification shade is opened via click on button." into qt-dev am: 62ad8b9c
am: 51fe5f63

Change-Id: Ied8dd39e33bda121eee2d04e8dade60e103a5dbb
parents 40d3370a 51fe5f63
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -472,7 +472,10 @@ public class CarStatusBar extends StatusBar implements
                }
                }
                boolean isTracking = mIsTracking;
                boolean isTracking = mIsTracking;
                Rect rect = mNotificationList.getClipBounds();
                Rect rect = mNotificationList.getClipBounds();
                float clippedHeight = rect.bottom;
                float clippedHeight = 0;
                if (rect != null) {
                    clippedHeight = rect.bottom;
                }
                if (!handled && event.getActionMasked() == MotionEvent.ACTION_UP
                if (!handled && event.getActionMasked() == MotionEvent.ACTION_UP
                        && mIsSwipingVerticallyToClose) {
                        && mIsSwipingVerticallyToClose) {
                    if (mSettleClosePercentage < mPercentageFromBottom && isTracking) {
                    if (mSettleClosePercentage < mPercentageFromBottom && isTracking) {