From f4c5fae44d3e9dd118fcb80ef8dbc02bccf0c189 Mon Sep 17 00:00:00 2001 From: Artem Shvadskiy Date: Thu, 4 Feb 2016 11:14:10 -0800 Subject: Refactor fastscroll to disable zoom cleanly Change-Id: I3912986aae78bd5a3244410e4486a52a50834867 issue-id: OPO-424 --- src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com') diff --git a/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java b/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java index b97966f26..006cfccef 100644 --- a/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java +++ b/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java @@ -54,7 +54,7 @@ public class BaseRecyclerViewFastScrollBar { public static class FastScrollFocusApplicator implements FastScrollFocusable { private static final int FAST_SCROLL_FOCUS_FADE_IN_DURATION = 175; private static final int FAST_SCROLL_FOCUS_FADE_OUT_DURATION = 125; - private static final float FAST_SCROLL_FOCUS_MAX_SCALE = 1f; + private static final float FAST_SCROLL_FOCUS_MAX_SCALE = 1.15f; private final View mView; private final int mFastScrollMode; @@ -93,7 +93,7 @@ public class BaseRecyclerViewFastScrollBar { private FastScrollFocusApplicator(final View v, final int mode) { mView = v; - mFastScrollMode = mode; + mFastScrollMode = mode & ~FAST_SCROLL_FOCUS_SCALABLE; // Globally disable scaling. } public void setFastScrollFocused(boolean focused, boolean animated) { -- cgit v1.2.3