[Android] No recommendation on Oreo TVs for now

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


vlc-android | branch: 2.5.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 17 14:36:33 2018 +0100| [c9a2de8b20ca8cf9ec2c53e1062b055cd913cc95] | committer: Geoffrey Métais

No recommendation on Oreo TVs for now

See #473

(cherry picked from commit 22449694def01dd6e3fe98fc2c10a3ae0e13d18c)

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

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

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 8bdab8652..7b7beaaeb 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/MainTvActivity.java
@@ -57,6 +57,7 @@ import android.widget.ProgressBar;
 
 import org.videolan.libvlc.Media;
 import org.videolan.libvlc.MediaPlayer;
+import org.videolan.libvlc.util.AndroidUtil;
 import org.videolan.medialibrary.Medialibrary;
 import org.videolan.medialibrary.Tools;
 import org.videolan.medialibrary.interfaces.MediaUpdatedCb;
@@ -210,7 +211,7 @@ public class MainTvActivity extends BaseTvActivity implements OnItemViewSelected
     @Override
     protected void onStop() {
         super.onStop();
-        if (AndroidDevices.isAndroidTv) startService(new Intent(this, RecommendationsService.class));
+        if (AndroidDevices.isAndroidTv && !AndroidUtil.isOOrLater) startService(new Intent(this, RecommendationsService.class));
         TvUtil.releaseBackgroundManager(mBackgroundManager);
     }
 



More information about the Android mailing list