[Android] TV: Avoid useless refresh

Geoffrey Métais git at videolan.org
Wed Jan 17 16:44:54 CET 2018


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

TV: Avoid useless refresh

(cherry picked from commit 4433716e1f15001b32d4d8f5ab3233aff8465995)

> https://code.videolan.org/videolan/vlc-android/commit/6a0851703f18793d31ab2e18df10407b3afc5943
---

 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 74e87ac07..fed930997 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -168,6 +168,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