summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorWinson <winsonc@google.com>2015-08-27 12:30:08 -0700
committerWinson <winsonc@google.com>2015-08-27 12:30:08 -0700
commit2605900854a64eef49380332de17935d8204597d (patch)
tree0afca3d705bf006215cf3df13d5ba65daefebb87 /src/com/android
parenta79b18ad36ca9025ac4862c492260a656f61c7cf (diff)
downloadandroid_packages_apps_Trebuchet-2605900854a64eef49380332de17935d8204597d.tar.gz
android_packages_apps_Trebuchet-2605900854a64eef49380332de17935d8204597d.tar.bz2
android_packages_apps_Trebuchet-2605900854a64eef49380332de17935d8204597d.zip
Fixing issue with missing scroll bar after fast-scrolling and searching.
- This was due to us not re-attaching the thumb to the scrollbar after we scroll the view to the top explicitly without the user scrolling. Bug: 23562489 Change-Id: I5932b9b3b9358e23c0ec23aa235644b4f27c43ea
Diffstat (limited to 'src/com/android')
-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 1cde7bfc0..e5f2c3cc3 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);
}