[Android] No recommendation on Oreo TVs for now
Geoffrey Métais
git at videolan.org
Wed Jan 17 14:38:00 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jan 17 14:36:33 2018 +0100| [22449694def01dd6e3fe98fc2c10a3ae0e13d18c] | committer: Geoffrey Métais
No recommendation on Oreo TVs for now
See #473
> https://code.videolan.org/videolan/vlc-android/commit/22449694def01dd6e3fe98fc2c10a3ae0e13d18c
---
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 cf949319d..376a9eb62 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;
@@ -209,7 +210,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