[Android] Do not show playback notifications on TV

Geoffrey Métais git at videolan.org
Fri Jun 16 16:57:20 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun 16 16:40:42 2017 +0200| [a012c0b006613d86511f448cc3b738e1c6a7b471] | committer: Geoffrey Métais

Do not show playback notifications on TV

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index d0f9afc12..8b34dd979 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -859,6 +859,8 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
 
     @TargetApi(Build.VERSION_CODES.LOLLIPOP)
     private void showNotification() {
+        if (VLCApplication.showTvUi())
+            return;
         if (mMediaPlayer.getVLCVout().areViewsAttached()) {
             hideNotification();
             return;



More information about the Android mailing list