[Android] AudioBrowser: clear medialibrary callbacks
Geoffrey Métais
git at videolan.org
Wed Mar 7 15:22:43 CET 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar 2 18:12:35 2018 +0100| [d884268eb463ac49c07058521ea0a1b680ba7cf7] | committer: Geoffrey Métais
AudioBrowser: clear medialibrary callbacks
(cherry picked from commit 1b29a3360dd00ef6aa56f6a78e3f3cb43731553c)
> https://code.videolan.org/videolan/vlc-android/commit/d884268eb463ac49c07058521ea0a1b680ba7cf7
---
vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java | 2 ++
1 file changed, 2 insertions(+)
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 5e9103811..f485eb327 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserFragment.java
@@ -172,6 +172,8 @@ public class AudioBrowserFragment extends BaseAudioBrowser implements SwipeRefre
} else {
mMediaLibrary.removeMediaUpdatedCb();
mMediaLibrary.removeMediaAddedCb();
+ mMediaLibrary.setArtistsAddedCb(null);
+ mMediaLibrary.setAlbumsAddedCb(null);
for (View rv : mLists)
unregisterForContextMenu(rv);
mViewPager.removeOnPageChangeListener(this);
More information about the Android
mailing list