[Android] TvBrowser: don't release MediaBrowser more than one time
Thomas Guillem
git at videolan.org
Wed Jun 3 15:49:47 CEST 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jun 3 15:49:42 2015 +0200| [73c4798a71c72d20244692eb272582185e86ccc4] | committer: Thomas Guillem
TvBrowser: don't release MediaBrowser more than one time
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=73c4798a71c72d20244692eb272582185e86ccc4
---
.../src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java
index b890c88..1383192 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java
@@ -81,7 +81,10 @@ public class BrowserGridFragment extends GridFragment implements MediaBrowser.Ev
public void onPause(){
super.onPause();
- mMediaBrowser.release();
+ if (mMediaBrowser != null) {
+ mMediaBrowser.release();
+ mMediaBrowser = null;
+ }
((BrowserActivity)getActivity()).updateEmptyView(false);
}
@Override
More information about the Android
mailing list