[Android] Fix TV build for refactored LibVLC singleton

Geoffrey Métais git at videolan.org
Tue Mar 24 11:25:35 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 24 10:42:15 2015 +0100| [447e26fedc512ac1013b13c719ecbff15ca5359e] | committer: Geoffrey Métais

Fix TV build for refactored LibVLC singleton

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

 .../tv/src/org/videolan/vlc/gui/tv/browser/BrowserGridFragment.java |    3 ++-
 1 file changed, 2 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 227c114..11871ff 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
@@ -38,6 +38,7 @@ import org.videolan.vlc.gui.audio.MediaComparators;
 import org.videolan.vlc.gui.network.NetworkFragment;
 import org.videolan.vlc.gui.tv.DetailsActivity;
 import org.videolan.vlc.gui.tv.MediaItemDetails;
+import org.videolan.vlc.util.VLCInstance;
 
 import java.util.ArrayList;
 import java.util.Collections;
@@ -62,7 +63,7 @@ public class BrowserGridFragment extends GridFragment implements MediaBrowser.Ev
     public void onResume() {
         super.onResume();
         if (mAdapter.size() == 0) {
-            mMediaBrowser = new MediaBrowser(LibVLC.getInstance(), this);
+            mMediaBrowser = new MediaBrowser(VLCInstance.get(), this);
             if (mMediaBrowser != null) {
                 mMediaList = new ArrayList<>();
                 if (mMrl != null)



More information about the Android mailing list