[Android] AudioBrowser: clear medialibrary callbacks

Geoffrey Métais git at videolan.org
Fri Mar 2 18:19:26 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar  2 18:12:35 2018 +0100| [1b29a3360dd00ef6aa56f6a78e3f3cb43731553c] | committer: Geoffrey Métais

AudioBrowser: clear medialibrary callbacks

> https://code.videolan.org/videolan/vlc-android/commit/1b29a3360dd00ef6aa56f6a78e3f3cb43731553c
---

 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