[Android] Fix TV build

Geoffrey Métais git at videolan.org
Fri May 22 14:32:07 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 22 14:31:42 2015 +0200| [87aa71f723ff616b3d0b96dda4d083688ac8bb01] | committer: Geoffrey Métais

Fix TV build

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

 vlc-android/tv/src/org/videolan/vlc/gui/tv/BootupReceiver.java |    2 ++
 vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/BootupReceiver.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/BootupReceiver.java
index 645a75e..c93ce95 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/BootupReceiver.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/BootupReceiver.java
@@ -27,6 +27,8 @@ import android.content.Context;
 import android.content.Intent;
 import android.util.Log;
 
+import org.videolan.vlc.VLCApplication;
+
 public class BootupReceiver extends BroadcastReceiver {
     public BootupReceiver() {
     }
diff --git a/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index 4075f27..867037c 100644
--- a/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -30,6 +30,7 @@ import org.videolan.vlc.MediaLibrary;
 import org.videolan.vlc.MediaWrapper;
 import org.videolan.vlc.R;
 import org.videolan.vlc.Thumbnailer;
+import org.videolan.vlc.VLCApplication;
 import org.videolan.vlc.gui.PreferencesActivity;
 import org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity;
 import org.videolan.vlc.gui.tv.browser.MusicFragment;
@@ -142,7 +143,7 @@ public class MainTvActivity extends Activity implements IVideoBrowser, OnItemVie
 
         mBrowseFragment.setOnSearchClickedListener(this);
         mRootContainer = mBrowseFragment.getView();
-        mMediaLibrary.loadMediaItems(this, true);
+        mMediaLibrary.loadMediaItems(true);
         BackgroundManager.getInstance(this).attach(getWindow());
     }
 
@@ -190,7 +191,7 @@ public class MainTvActivity extends Activity implements IVideoBrowser, OnItemVie
         super.onActivityResult(requestCode, resultCode, data);
         if (requestCode == ACTIVITY_RESULT_PREFERENCES) {
             if (resultCode == PreferencesActivity.RESULT_RESCAN)
-                MediaLibrary.getInstance().loadMediaItems(this, true);
+                MediaLibrary.getInstance().loadMediaItems(true);
             else if (resultCode == PreferencesActivity.RESULT_RESTART) {
                 Intent intent = getIntent();
                 finish();



More information about the Android mailing list