am 0fd3e545: Merge "Fixing issue with missing scroll bar after fast-scrolling and searching." into ub-launcher3-burnaby
* commit '0fd3e545a709902e67dd42440e351a22a6daa48c': Fixing issue with missing scroll bar after fast-scrolling and searching.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user