summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-08-27 19:36:07 (GMT)
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-08-27 19:36:07 (GMT)
commit0fd3e545a709902e67dd42440e351a22a6daa48c (patch)
tree67180dde9035caa23f3fc1f52e2bc959282b921e
parent22aa3813f818e46a096fef6490db2a60f2617eb7 (diff)
parent2605900854a64eef49380332de17935d8204597d (diff)
downloadandroid_packages_apps_Trebuchet-0fd3e545a709902e67dd42440e351a22a6daa48c.zip
android_packages_apps_Trebuchet-0fd3e545a709902e67dd42440e351a22a6daa48c.tar.gz
android_packages_apps_Trebuchet-0fd3e545a709902e67dd42440e351a22a6daa48c.tar.bz2
Merge "Fixing issue with missing scroll bar after fast-scrolling and searching." into ub-launcher3-burnaby
-rw-r--r--src/com/android/launcher3/allapps/AllAppsRecyclerView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
index 1cde7bf..e5f2c3c 100644
--- a/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsRecyclerView.java
@@ -102,6 +102,10 @@ public class AllAppsRecyclerView extends BaseRecyclerView
* Scrolls this recycler view to the top.
*/
public void scrollToTop() {
+ // Ensure we reattach the scrollbar if it was previously detached while fast-scrolling
+ if (mScrollbar.isThumbDetached()) {
+ mScrollbar.reattachThumbToScroll();
+ }
scrollToPosition(0);
}