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
This commit is contained in:
Selim Cinek
2016-04-18 15:57:57 -07:00
parent e4367d60fc
commit fe090658b6

View File

@@ -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) {