diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2015-06-04 11:37:46 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2015-06-04 11:37:46 -0700 |
commit | ec84728b270004494dc483c141628ec6417175fb (patch) | |
tree | 7c3e053e32a0dd1b22f88bdcfd96bfc24dc4103f /src/com/android/launcher3/BaseRecyclerView.java | |
parent | 585b764ae24c7869704c428d1739e151e989674d (diff) | |
download | android_packages_apps_Trebuchet-ec84728b270004494dc483c141628ec6417175fb.tar.gz android_packages_apps_Trebuchet-ec84728b270004494dc483c141628ec6417175fb.tar.bz2 android_packages_apps_Trebuchet-ec84728b270004494dc483c141628ec6417175fb.zip |
Consistent scrolling experience for All apps and widget tray
b/21375339
Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0
Diffstat (limited to 'src/com/android/launcher3/BaseRecyclerView.java')
-rw-r--r-- | src/com/android/launcher3/BaseRecyclerView.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/android/launcher3/BaseRecyclerView.java b/src/com/android/launcher3/BaseRecyclerView.java index 8d418f984..a207d9a12 100644 --- a/src/com/android/launcher3/BaseRecyclerView.java +++ b/src/com/android/launcher3/BaseRecyclerView.java @@ -86,10 +86,8 @@ public class BaseRecyclerView extends RecyclerView private int mDownX; private int mDownY; - private int mLastX; private int mLastY; private int mScrollbarWidth; - private int mScrollbarMinHeight; private int mScrollbarInset; private Rect mBackgroundPadding = new Rect(); @@ -121,8 +119,6 @@ public class BaseRecyclerView extends RecyclerView mFastScrollTextPaint.setTextSize(res.getDimensionPixelSize( R.dimen.all_apps_fast_scroll_text_size)); mScrollbarWidth = res.getDimensionPixelSize(R.dimen.all_apps_fast_scroll_bar_width); - mScrollbarMinHeight = - res.getDimensionPixelSize(R.dimen.all_apps_fast_scroll_bar_min_height); mScrollbarInset = res.getDimensionPixelSize(R.dimen.all_apps_fast_scroll_scrubber_touch_inset); setFastScrollerAlpha(mFastScrollAlpha); @@ -173,7 +169,7 @@ public class BaseRecyclerView extends RecyclerView switch (action) { case MotionEvent.ACTION_DOWN: // Keep track of the down positions - mDownX = mLastX = x; + mDownX = x; mDownY = mLastY = y; if (shouldStopScroll(ev)) { stopScroll(); @@ -188,7 +184,6 @@ public class BaseRecyclerView extends RecyclerView animateFastScrollerVisibility(true); } if (mDraggingFastScroller) { - mLastX = x; mLastY = y; // Scroll to the right position, and update the section name |