[Android] Fix "Stop on application swipe" setting
Nicolas Pomepuy
git at videolan.org
Wed Oct 28 06:10:38 CET 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Oct 27 08:19:01 2020 +0100| [5ca900005d345c1812904df33dc3ed60e27b66ab] | committer: Nicolas Pomepuy
Fix "Stop on application swipe" setting
Fixes #1521
> https://code.videolan.org/videolan/vlc-android/commit/5ca900005d345c1812904df33dc3ed60e27b66ab
---
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 2aab4931fb..110ba0a7f0 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