[Android] Fix playback notification icon

Geoffrey Métais git at videolan.org
Fri Jan 24 10:19:20 CET 2020


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

Fix playback notification icon

video icon was incorrectly chosen because of MEDIA_FORCE_AUDIO flag

(cherry picked from commit 97462bd44607e1ac7920336b870ef5953ac8263e)

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

 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 db53d1bd5..d5f11b263 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -679,7 +679,7 @@ class PlaybackService : MediaBrowserServiceCompat(), CoroutineScope, LifecycleOw
                         cover = BitmapFactory.decodeResource(ctx.resources, R.drawable.ic_no_media)
 
                     notification = NotificationHelper.createPlaybackNotification(ctx,
-                            mw.hasFlag(AbstractMediaWrapper.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