From 6fc672db95efebf3ee3e59e90e6c993383fa3888 Mon Sep 17 00:00:00 2001 From: Danesh M Date: Tue, 23 Feb 2016 14:57:56 -0800 Subject: NotificationPanelView : Fix incorrect panel translation In the event that panel hasn't been measured and user drags panel down, it will be offset unecessarily. Account for this by making the check take this into account. OPO-506 Change-Id: Ie46444424152e7bd6101e59a055acf0957716e3a --- .../src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9763982..aaa7019 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -2542,7 +2542,7 @@ public class NotificationPanelView extends PanelView implements * @param x the x-coordinate the touch event */ private void updateVerticalPanelPosition(float x) { - if (mNotificationStackScroller.getWidth() * 1.75f > getWidth()) { + if (mNotificationStackScroller.getWidth() * 1.75f >= getWidth()) { resetVerticalPanelPosition(); return; } -- cgit v1.1