diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2016-06-10 12:00:02 -0700 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2016-06-10 13:26:19 -0700 |
commit | f4cbb1428a97142e42214951f6914353e2bd70cf (patch) | |
tree | a6b3c41fe7925c608d2684c1a8021d261fecd0fa /src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java | |
parent | a92e0dfa0c8724252c692da59193ee40d0b366a7 (diff) | |
download | android_packages_apps_Trebuchet-f4cbb1428a97142e42214951f6914353e2bd70cf.tar.gz android_packages_apps_Trebuchet-f4cbb1428a97142e42214951f6914353e2bd70cf.tar.bz2 android_packages_apps_Trebuchet-f4cbb1428a97142e42214951f6914353e2bd70cf.zip |
Fixes to touch handling in all apps pull up work
b/28917826
- Fast scroll bar works even when it's at the top of the recycler view
- Pull down only happens ONLY IF the thumb of the scroll bar is at top
- When container is touched during sliding down animation,
translation should not jump
Change-Id: Ic1d9a4aa77332cc0a7582556f893053003224dd3
Diffstat (limited to 'src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java')
-rw-r--r-- | src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java b/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java index a6801696a..fd0045e63 100644 --- a/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java +++ b/src/com/android/launcher3/BaseRecyclerViewFastScrollBar.java @@ -27,7 +27,6 @@ import android.graphics.Path; import android.graphics.Point; import android.graphics.Rect; import android.view.MotionEvent; -import android.view.VelocityTracker; import android.view.ViewConfiguration; import com.android.launcher3.util.Thunk; @@ -293,7 +292,7 @@ public class BaseRecyclerViewFastScrollBar { /** * Returns whether the specified points are near the scroll bar bounds. */ - private boolean isNearThumb(int x, int y) { + public boolean isNearThumb(int x, int y) { mTmpRect.set(mThumbOffset.x, mThumbOffset.y, mThumbOffset.x + mThumbWidth, mThumbOffset.y + mThumbHeight); mTmpRect.inset(mTouchInset, mTouchInset); |