File tree Expand file tree Collapse file tree
src/com/android/launcher3/allapps Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -529,13 +529,6 @@ protected void rebindAdapters(boolean force) {
529529 mAllAppsStore .registerIconContainer (mAH .get (AdapterHolder .SEARCH ).mRecyclerView );
530530 }
531531
532- protected void setScrollbarVisibility (boolean visible ) {
533- final RecyclerViewFastScroller scrollbar = getScrollBar ();
534- if (scrollbar != null ) {
535- scrollbar .setVisibility (visible ? VISIBLE : GONE );
536- }
537- }
538-
539532 protected View replaceAppsRVContainer (boolean showTabs ) {
540533 for (int i = AdapterHolder .MAIN ; i <= AdapterHolder .WORK ; i ++) {
541534 AdapterHolder adapterHolder = mAH .get (i );
@@ -1011,6 +1004,13 @@ protected void dispatchDraw(Canvas canvas) {
10111004 }
10121005 }
10131006
1007+ protected void setScrollbarVisibility (boolean visible ) {
1008+ AllAppsRecyclerView rv = getActiveRecyclerView ();
1009+ if (rv != null && rv .getScrollbar () != null ) {
1010+ rv .getScrollbar ().setVisibility (visible ? VISIBLE : GONE );
1011+ }
1012+ }
1013+
10141014 protected void updateSearchResultsVisibility () {
10151015 if (isSearching ()) {
10161016 getSearchRecyclerView ().setVisibility (VISIBLE );
You can’t perform that action at this time.
0 commit comments