diff options
| author | 2016-04-18 15:57:57 -0700 | |
|---|---|---|
| committer | 2016-04-19 15:19:04 -0700 | |
| commit | fe090658b691f8a960bf0492371ec8b52ed4430f (patch) | |
| tree | c56467e4d8e1118d70ffc2d5b00362948c37d9d6 | |
| parent | e4367d60fce814a4d238fc066919693f3852bc09 (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/ExpandHelper.java | 8 |
1 files 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 d12ab293ab3e..cecbfcb236ba 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) { |