From fe090658b691f8a960bf0492371ec8b52ed4430f Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 18 Apr 2016 15:57:57 -0700 Subject: [PATCH] Fixed a bug where expanding by touch wasn't possible In landscape expanding by touch was not working because the rawX is different from the X. Change-Id: Id1278b073ea2e10258648884c528f5db273f2d78 Fixes: 27923197 --- .../SystemUI/src/com/android/systemui/ExpandHelper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/ExpandHelper.java b/packages/SystemUI/src/com/android/systemui/ExpandHelper.java index d12ab293ab3e2..cecbfcb236bab 100644 --- a/packages/SystemUI/src/com/android/systemui/ExpandHelper.java +++ b/packages/SystemUI/src/com/android/systemui/ExpandHelper.java @@ -317,8 +317,8 @@ public class ExpandHelper implements Gefingerpoken { mResizedView = null; mWatchingForPull = false; } - mInitialTouchY = ev.getY(); - mInitialTouchX = ev.getX(); + mInitialTouchY = ev.getRawY(); + mInitialTouchX = ev.getRawX(); break; case MotionEvent.ACTION_CANCEL: @@ -412,8 +412,8 @@ public class ExpandHelper implements Gefingerpoken { mWatchingForPull = mScrollAdapter != null && isInside(mScrollAdapter.getHostView(), x, y); mResizedView = findView(x, y); - mInitialTouchX = ev.getX(); - mInitialTouchY = ev.getY(); + mInitialTouchX = ev.getRawX(); + mInitialTouchY = ev.getRawY(); break; case MotionEvent.ACTION_MOVE: { if (mWatchingForPull) {