[Android] Set mediabrowser to null when released

Geoffrey Métais git at videolan.org
Mon Jun 15 17:19:18 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 15 17:18:47 2015 +0200| [27c427f033e61870fbd1681a0d7b87cfafacda41] | committer: Geoffrey Métais

Set mediabrowser to null when released

Fix broken refactoring :/

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=27c427f033e61870fbd1681a0d7b87cfafacda41
---

 .../src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java      |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index 9667ebf..c458b49 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -151,8 +151,10 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
     }
 
     private void releaseBrowser() {
-        if (mMediaBrowser != null)
+        if (mMediaBrowser != null) {
             mMediaBrowser.release();
+            mMediaBrowser = null;
+        }
     }
 
     public void onSaveInstanceState(Bundle outState){



More information about the Android mailing list