[Android] Fix playback notification icon

Geoffrey Métais git at videolan.org
Thu Jan 23 14:05:06 CET 2020


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 23 11:25:31 2020 +0100| [97462bd44607e1ac7920336b870ef5953ac8263e] | committer: Geoffrey Métais

Fix playback notification icon

video icon was incorrectly chosen because of MEDIA_FORCE_AUDIO flag

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

 vlc-android/src/org/videolan/vlc/PlaybackService.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index c2510a118..b7f51700e 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -718,7 +718,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner {
                         cover = BitmapFactory.decodeResource(ctx.resources, R.drawable.ic_no_media)
 
                     notification = NotificationHelper.createPlaybackNotification(ctx,
-                            mw.hasFlag(MediaWrapper.MEDIA_FORCE_AUDIO), title, artist, album,
+                            canSwitchToVideo(), title, artist, album,
                             cover, playing, isPausable, sessionToken, sessionPendingIntent)
                     if (isPlayingPopup) return at launch
                     if (!AndroidUtil.isLolliPopOrLater || playing || audioFocusHelper.lossTransient) {



More information about the Android mailing list