Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26059008 authored by Winson's avatar Winson
Browse files

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
parent a79b18ad
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
    }