[Android] Fix sleep timer killing VLC

Geoffrey Métais git at videolan.org
Thu Jul 4 11:32:00 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul  4 11:01:53 2019 +0200| [29297f5155c59d33192aef64a1a039a106550f25] | committer: Geoffrey Métais

Fix sleep timer killing VLC

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

 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 2c534dc8d..decf2b986 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -131,7 +131,7 @@ class PlaybackService : MediaBrowserServiceCompat(), CoroutineScope, LifecycleOw
                 VLCAppWidgetProvider.ACTION_WIDGET_ENABLED, VLCAppWidgetProvider.ACTION_WIDGET_DISABLED -> updateHasWidget()
                 SLEEP_INTENT -> {
                     if (isPlaying) {
-                        stop(true)
+                        stop()
                     }
                 }
                 VLCAppWidgetProvider.ACTION_WIDGET_ENABLED , VLCAppWidgetProvider.ACTION_WIDGET_DISABLED -> updateHasWidget()



More information about the Android mailing list