[Android] Fix "Stop on application swipe" setting
Nicolas Pomepuy
git at videolan.org
Tue Nov 3 15:47:09 CET 2020
vlc-android | branch: 3.3.x | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Oct 27 08:19:01 2020 +0100| [874d38034ee31e13eb260b9b9596c2b48fc0073e] | committer: Nicolas Pomepuy
Fix "Stop on application swipe" setting
Fixes #1521
(cherry picked from commit 5ca900005d345c1812904df33dc3ed60e27b66ab)
> https://code.videolan.org/videolan/vlc-android/commit/874d38034ee31e13eb260b9b9596c2b48fc0073e
---
application/vlc-android/src/org/videolan/vlc/PlaybackService.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 2aab4931f..110ba0a7f 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -573,7 +573,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner {
}
override fun onTaskRemoved(rootIntent: Intent) {
- if (settings.getBoolean("audio_task_removed", false)) stopService(Intent(applicationContext, PlaybackService.javaClass))
+ if (settings.getBoolean("audio_task_removed", false)) stop()
}
override fun onDestroy() {
More information about the Android
mailing list