[Android] Set service foreground on Android TV

Geoffrey Métais git at videolan.org
Mon Nov 13 13:55:16 CET 2017


vlc-android | branch: 2.5.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Nov 10 11:30:59 2017 +0100| [3048fbc95c44e22fa918c77647d71023eec72511] | committer: Geoffrey Métais

Set service foreground on Android TV

(cherry picked from commit 25029ea3cd682b7f2185821ff6bb5a8904403c22)

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

 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