[Android] Avoid hiding the pause button in the player notification

Nicolas Pomepuy git at videolan.org
Tue Aug 27 11:03:30 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Aug 26 15:20:18 2019 +0200| [70c8954e351dd3206079556964923f1f96dac5a5] | committer: Nicolas Pomepuy

Avoid hiding the pause button in the player notification

Fixes #1009

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

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 5022a3099..d7264fbdb 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -661,7 +661,6 @@ class PlaybackService : MediaBrowserServiceCompat(), CoroutineScope, LifecycleOw
         if (mw != null) {
             val coverOnLockscreen = settings.getBoolean("lockscreen_cover", true)
             val playing = isPlaying
-            val pausable = isPausable && isSeekable && length > 0 // TODO: length > 0 is temporarily hack till libVlc is fixed.
             val sessionToken = mediaSession.sessionToken
             val ctx = this
             val metaData = mediaSession.controller.metadata
@@ -681,7 +680,7 @@ class PlaybackService : MediaBrowserServiceCompat(), CoroutineScope, LifecycleOw
 
                     notification = NotificationHelper.createPlaybackNotification(ctx,
                             mw.hasFlag(AbstractMediaWrapper.MEDIA_FORCE_AUDIO), title, artist, album,
-                            cover, playing, pausable, sessionToken, sessionPendingIntent)
+                            cover, playing, isPausable, sessionToken, sessionPendingIntent)
                     if (isPlayingPopup) return at launch
                     if (!AndroidUtil.isLolliPopOrLater || playing || audioFocusHelper.lossTransient) {
                         if (!isForeground) {



More information about the Android mailing list