From 2605900854a64eef49380332de17935d8204597d Mon Sep 17 00:00:00 2001 From: Winson Date: Thu, 27 Aug 2015 12:30:08 -0700 Subject: 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 --- src/com/android/launcher3/allapps/AllAppsRecyclerView.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com/android') 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); } -- cgit v1.2.3