Fix NPE / add downX,Y location for all swipes/ add extra debugging info

Bug: 122700646
Bug: 127840207

Change-Id: I5862c8950565df172a933114e1fb2f9c4575593e
This commit is contained in:
Hyunyoung Song
2019-04-24 11:32:20 -07:00
parent 01b8b68db7
commit bf44bc342f
8 changed files with 39 additions and 18 deletions
@@ -180,6 +180,13 @@ public class SwipeDetector {
return mState == ScrollState.DRAGGING || mState == ScrollState.SETTLING;
}
public int getDownX() {
return (int) mDownPos.x;
}
public int getDownY() {
return (int) mDownPos.y;
}
/**
* There's no touch and there's no animation.
*/