* commit '21a784491775de97dccf7db24a62d942fc2a976f': Update fling min velocity
This commit is contained in:
@@ -287,8 +287,6 @@ public class ViewConfiguration {
|
||||
|
||||
mEdgeSlop = (int) (sizeAndDensity * EDGE_SLOP + 0.5f);
|
||||
mFadingEdgeLength = (int) (sizeAndDensity * FADING_EDGE_LENGTH + 0.5f);
|
||||
mMinimumFlingVelocity = (int) (density * MINIMUM_FLING_VELOCITY + 0.5f);
|
||||
mMaximumFlingVelocity = (int) (density * MAXIMUM_FLING_VELOCITY + 0.5f);
|
||||
mScrollbarSize = (int) (density * SCROLL_BAR_SIZE + 0.5f);
|
||||
mDoubleTapSlop = (int) (sizeAndDensity * DOUBLE_TAP_SLOP + 0.5f);
|
||||
mWindowTouchSlop = (int) (sizeAndDensity * WINDOW_TOUCH_SLOP + 0.5f);
|
||||
@@ -339,6 +337,11 @@ public class ViewConfiguration {
|
||||
mPagingTouchSlop = mTouchSlop * 2;
|
||||
|
||||
mDoubleTapTouchSlop = mTouchSlop;
|
||||
|
||||
mMinimumFlingVelocity = res.getDimensionPixelSize(
|
||||
com.android.internal.R.dimen.config_viewMinFlingVelocity);
|
||||
mMaximumFlingVelocity = res.getDimensionPixelSize(
|
||||
com.android.internal.R.dimen.config_viewMaxFlingVelocity);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user