From 9b2e90cb5154333dd4da89379bba109afa64f4be Mon Sep 17 00:00:00 2001 From: Roman Birg Date: Wed, 25 May 2016 11:10:55 -0700 Subject: SystemUI: fix qs pulldown on certain themes Some themes define the peek height as 0, we should respect that and allow the QS pulldown to still work. Ticket: CYNGNOS-2756 Change-Id: I0404974a23ef41f4689c38ab86e3f09c4bb150ab Signed-off-by: Roman Birg --- .../src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/phone') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 936fcca..390fb1e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -1087,7 +1087,7 @@ public class NotificationPanelView extends PanelView implements } if (mTwoFingerQsExpandPossible && isOpenQsEvent(event) && event.getY(event.getActionIndex()) < mStatusBarMinHeight - && mExpandedHeight < mQsPeekHeight) { + && mExpandedHeight <= mQsPeekHeight) { MetricsLogger.count(mContext, COUNTER_PANEL_OPEN_QS, 1); mQsExpandImmediate = true; requestPanelHeightUpdate(); -- cgit v1.1