Skip to content
Snippets Groups Projects
Commit cc9e557a authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Update fastscroller state on display update

parent 56186686
No related branches found
No related tags found
No related merge requests found
......@@ -518,6 +518,7 @@ public class AudioBrowserFragment extends MediaBrowserFragment implements Device
mSwipeRefreshLayout.setRefreshing(false);
mDisplaying = false;
updateEmptyView(mViewPager.getCurrentItem());
mFastScroller.setRecyclerView((RecyclerView) mLists.get(mViewPager.getCurrentItem()));
}
});
}
......
......@@ -155,6 +155,8 @@ public class FastScroller extends LinearLayout {
}
public void setRecyclerView(RecyclerView recyclerView) {
if (mRecyclerView != null)
mRecyclerView.removeOnScrollListener(scrollListener);
setVisibility(INVISIBLE);
mItemCount = recyclerView.getAdapter().getItemCount();
this.mRecyclerView = recyclerView;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment