[Android] TV: Avoid useless refresh

Geoffrey Métais git at videolan.org
Wed Jan 17 15:29:48 CET 2018


vlc-android | branch: chromecast | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 17 15:00:49 2018 +0100| [4433716e1f15001b32d4d8f5ab3233aff8465995] | committer: Geoffrey Métais

TV: Avoid useless refresh

> https://code.videolan.org/videolan/vlc-android/commit/4433716e1f15001b32d4d8f5ab3233aff8465995
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
index 61c91ff42..0962bf115 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -167,6 +167,7 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
     public void onConnected(PlaybackService service) {
         super.onConnected(service);
         mService.addCallback(this);
+        if (!mMediaLibrary.isInitiated()) return;
         /*
          * skip browser and show directly Audio Player if a song is playing
          */



More information about the Android mailing list