Merge "Handle NPE when the notification shade is opened via click on button." into qt-dev
am: 62ad8b9ccc
Change-Id: I6d985834d3da90e91c54f144aaa8108fffce9c38
This commit is contained in:
@@ -472,7 +472,10 @@ public class CarStatusBar extends StatusBar implements
|
||||
}
|
||||
boolean isTracking = mIsTracking;
|
||||
Rect rect = mNotificationList.getClipBounds();
|
||||
float clippedHeight = rect.bottom;
|
||||
float clippedHeight = 0;
|
||||
if (rect != null) {
|
||||
clippedHeight = rect.bottom;
|
||||
}
|
||||
if (!handled && event.getActionMasked() == MotionEvent.ACTION_UP
|
||||
&& mIsSwipingVerticallyToClose) {
|
||||
if (mSettleClosePercentage < mPercentageFromBottom && isTracking) {
|
||||
|
||||
Reference in New Issue
Block a user