[Android] SaveCurrentMedia: rm useless condition

Duncan McNamara git at videolan.org
Tue Jan 17 08:33:23 UTC 2023


vlc-android | branch: 3.5.x | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Jan 16 10:29:46 2023 +0100| [7b6b9351c89f6ecb1eae04ceb053e7dd5edaaa84] | committer: Nicolas Pomepuy

SaveCurrentMedia: rm useless condition


(cherry picked from commit 7ac0943600e5a59f6681946ed8ca8256ac47d108)

> https://code.videolan.org/videolan/vlc-android/commit/7b6b9351c89f6ecb1eae04ceb053e7dd5edaaa84
---

 application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 9a59d2f88f..5a90948a4a 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -620,7 +620,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
         val saveVideoPlayQueue = settings.getBoolean(VIDEO_RESUME_PLAYBACK, true)
         if (!isAudio && saveVideoPlayQueue) {
             settings.putSingle(KEY_CURRENT_MEDIA_RESUME, media.location)
-            settings.putSingle(if (isAudio) KEY_CURRENT_AUDIO else KEY_CURRENT_MEDIA, media.location)
+            settings.putSingle(KEY_CURRENT_MEDIA, media.location)
         }
         if (isAudio && saveAudioPlayQueue) {
             settings.putSingle(KEY_CURRENT_MEDIA_RESUME, media.location)



More information about the Android mailing list