[Android] Force update view if MediaLibrary is not working

Geoffrey Métais git at videolan.org
Thu Jan 15 15:20:53 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 15 15:19:19 2015 +0100| [c00c2fc0251baf24eb88dd6f04513c389013e88f] | committer: Geoffrey Métais

Force update view if MediaLibrary is not working

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

 vlc-android/tv/src/org/videolan/vlc/gui/tv/MainTvActivity.java |    2 ++
 1 file changed, 2 insertions(+)

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 7616db8..515eb9d 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
@@ -140,6 +140,8 @@ public class MainTvActivity extends Activity implements VideoBrowserInterface {
     public void onResume() {
         super.onResume();
         mMediaLibrary.addUpdateHandler(mHandler);
+        if (!mMediaLibrary.isWorking())
+            updateList();
         if (sThumbnailer != null)
             sThumbnailer.setVideoBrowser(this);
     }



More information about the Android mailing list