Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -27246,6 +27246,7 @@ package android.view { method public float getScaleFactor(); method public long getTimeDelta(); method public boolean isInProgress(); method public boolean isQuickScaleEnabled(); method public boolean onTouchEvent(android.view.MotionEvent); method public void setQuickScaleEnabled(boolean); } core/java/android/view/ScaleGestureDetector.java +12 −4 Original line number Diff line number Diff line Loading @@ -130,7 +130,7 @@ public class ScaleGestureDetector { private float mFocusX; private float mFocusY; private boolean mDoubleTapScales; private boolean mQuickScaleEnabled; private float mCurrSpan; private float mPrevSpan; Loading Loading @@ -307,7 +307,7 @@ public class ScaleGestureDetector { final int action = event.getActionMasked(); // Forward the event to check for double tap gesture if (mDoubleTapScales) { if (mQuickScaleEnabled) { mGestureDetector.onTouchEvent(event); } Loading Loading @@ -456,8 +456,8 @@ public class ScaleGestureDetector { * @param scales true to enable quick scaling, false to disable */ public void setQuickScaleEnabled(boolean scales) { mDoubleTapScales = scales; if (mDoubleTapScales && mGestureDetector == null) { mQuickScaleEnabled = scales; if (mQuickScaleEnabled && mGestureDetector == null) { GestureDetector.SimpleOnGestureListener gestureListener = new GestureDetector.SimpleOnGestureListener() { @Override Loading @@ -472,6 +472,14 @@ public class ScaleGestureDetector { } } /** * Return whether the quick scale gesture, in which the user performs a double tap followed by a * swipe, should perform scaling. {@see #setQuickScaleEnabled(boolean)}. */ public boolean isQuickScaleEnabled() { return mQuickScaleEnabled; } /** * Returns {@code true} if a scale gesture is in progress. */ Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -27246,6 +27246,7 @@ package android.view { method public float getScaleFactor(); method public long getTimeDelta(); method public boolean isInProgress(); method public boolean isQuickScaleEnabled(); method public boolean onTouchEvent(android.view.MotionEvent); method public void setQuickScaleEnabled(boolean); }
core/java/android/view/ScaleGestureDetector.java +12 −4 Original line number Diff line number Diff line Loading @@ -130,7 +130,7 @@ public class ScaleGestureDetector { private float mFocusX; private float mFocusY; private boolean mDoubleTapScales; private boolean mQuickScaleEnabled; private float mCurrSpan; private float mPrevSpan; Loading Loading @@ -307,7 +307,7 @@ public class ScaleGestureDetector { final int action = event.getActionMasked(); // Forward the event to check for double tap gesture if (mDoubleTapScales) { if (mQuickScaleEnabled) { mGestureDetector.onTouchEvent(event); } Loading Loading @@ -456,8 +456,8 @@ public class ScaleGestureDetector { * @param scales true to enable quick scaling, false to disable */ public void setQuickScaleEnabled(boolean scales) { mDoubleTapScales = scales; if (mDoubleTapScales && mGestureDetector == null) { mQuickScaleEnabled = scales; if (mQuickScaleEnabled && mGestureDetector == null) { GestureDetector.SimpleOnGestureListener gestureListener = new GestureDetector.SimpleOnGestureListener() { @Override Loading @@ -472,6 +472,14 @@ public class ScaleGestureDetector { } } /** * Return whether the quick scale gesture, in which the user performs a double tap followed by a * swipe, should perform scaling. {@see #setQuickScaleEnabled(boolean)}. */ public boolean isQuickScaleEnabled() { return mQuickScaleEnabled; } /** * Returns {@code true} if a scale gesture is in progress. */ Loading