Merge "1. Get rid of unnecessary ; from VerticalPullDetector 2. Make an instance variable final" into ub-launcher3-dorval-polish

This commit is contained in:
Rajeev Kumar
2017-06-22 17:18:50 +00:00
committed by Android (Google) Code Review
@@ -17,7 +17,7 @@ public class VerticalPullDetector {
private static final boolean DBG = false; private static final boolean DBG = false;
private static final String TAG = "VerticalPullDetector"; private static final String TAG = "VerticalPullDetector";
private float mTouchSlop; private final float mTouchSlop;
private int mScrollConditions; private int mScrollConditions;
public static final int DIRECTION_UP = 1 << 0; public static final int DIRECTION_UP = 1 << 0;
@@ -47,8 +47,6 @@ public class VerticalPullDetector {
SETTLING // onDragEnd SETTLING // onDragEnd
} }
;
//------------------- ScrollState transition diagram ----------------------------------- //------------------- ScrollState transition diagram -----------------------------------
// //
// IDLE -> (mDisplacement > mTouchSlop) -> DRAGGING // IDLE -> (mDisplacement > mTouchSlop) -> DRAGGING
@@ -110,7 +108,7 @@ public class VerticalPullDetector {
private boolean mIgnoreSlopWhenSettling; private boolean mIgnoreSlopWhenSettling;
/* Client of this gesture detector can register a callback. */ /* Client of this gesture detector can register a callback. */
Listener mListener; private Listener mListener;
public void setListener(Listener l) { public void setListener(Listener l) {
mListener = l; mListener = l;