summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2016-02-23 14:57:56 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-25 11:38:18 -0800
commit6fc672db95efebf3ee3e59e90e6c993383fa3888 (patch)
tree2f48014ab91e9b099d37247ec5eb1c5e3dae0477 /packages/SystemUI
parent9c1b73021cd6c58f098135ec6970fe3f5eb73417 (diff)
downloadframeworks_base-6fc672db95efebf3ee3e59e90e6c993383fa3888.zip
frameworks_base-6fc672db95efebf3ee3e59e90e6c993383fa3888.tar.gz
frameworks_base-6fc672db95efebf3ee3e59e90e6c993383fa3888.tar.bz2
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
Diffstat (limited to 'packages/SystemUI')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java2
1 files changed, 1 insertions, 1 deletions
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;
}