[Android] Fix desync issue for the FastScroller when audio tab is changed.
Nicolas Pomepuy
git at videolan.org
Thu Feb 14 09:31:34 CET 2019
vlc-android | branch: fast_scroller | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Thu Feb 14 09:31:30 2019 +0100| [d533404db6eaf1f992f36759580d1e7a161154a5] | committer: Nicolas Pomepuy
Fix desync issue for the FastScroller when audio tab is changed.
> https://code.videolan.org/videolan/vlc-android/commit/d533404db6eaf1f992f36759580d1e7a161154a5
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
index 6e26e2a8e..8acd6d52f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -264,7 +264,7 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
@Override
public void onTabSelected(TabLayout.Tab tab) {
super.onTabSelected(tab);
- mFastScroller.setRecyclerView(getCurrentRV(), getViewModel());
+ mFastScroller.setRecyclerView(mLists[tab.getPosition()],models[tab.getPosition()]);
mSettings.edit().putInt(Constants.KEY_AUDIO_CURRENT_TAB, tab.getPosition()).apply();
final Boolean loading = getViewModel().getLoading().getValue();
if (loading == null || !loading) mHandler.sendEmptyMessage(UNSET_REFRESHING);
More information about the Android
mailing list