[Android] Set service foreground on Android TV
Geoffrey Métais
git at videolan.org
Fri Nov 10 11:31:24 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Nov 10 11:30:59 2017 +0100| [25029ea3cd682b7f2185821ff6bb5a8904403c22] | committer: Geoffrey Métais
Set service foreground on Android TV
> https://code.videolan.org/videolan/vlc-android/commit/25029ea3cd682b7f2185821ff6bb5a8904403c22
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index b3d87ff4e..04cb1b618 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -963,7 +963,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void showNotification() {
- if (VLCApplication.showTvUi())
+ if (!AndroidDevices.isAndroidTv && VLCApplication.showTvUi())
return;
if (isPlayingPopup() || mMediaPlayer.getVLCVout().areViewsAttached()) {
hideNotification();
More information about the Android
mailing list