am 66cedab6: Merge "Fix time-related ScaleGestureDetector methods" into jb-mr1.1-dev
* commit '66cedab63bf0c17e59a5815200bd9200164d89ec': Fix time-related ScaleGestureDetector methods
This commit is contained in:
@@ -259,6 +259,8 @@ public class ScaleGestureDetector {
|
||||
mInputEventConsistencyVerifier.onTouchEvent(event, 0);
|
||||
}
|
||||
|
||||
mCurrTime = event.getEventTime();
|
||||
|
||||
final int action = event.getActionMasked();
|
||||
|
||||
final boolean streamComplete = action == MotionEvent.ACTION_UP ||
|
||||
@@ -341,6 +343,7 @@ public class ScaleGestureDetector {
|
||||
mPrevSpanX = mCurrSpanX = spanX;
|
||||
mPrevSpanY = mCurrSpanY = spanY;
|
||||
mPrevSpan = mCurrSpan = span;
|
||||
mPrevTime = mCurrTime;
|
||||
mInProgress = mListener.onScaleBegin(this);
|
||||
}
|
||||
|
||||
@@ -359,6 +362,7 @@ public class ScaleGestureDetector {
|
||||
mPrevSpanX = mCurrSpanX;
|
||||
mPrevSpanY = mCurrSpanY;
|
||||
mPrevSpan = mCurrSpan;
|
||||
mPrevTime = mCurrTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user