[Android] SaveCurrentMedia: rm useless condition

Duncan McNamara git at videolan.org
Tue Jan 17 08:32:42 UTC 2023


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

SaveCurrentMedia: rm useless condition

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

 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 b56c7b2ce7..53e21b9a67 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -622,7 +622,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