[Android] Stop saving position when history is disabled
Duncan McNamara
git at videolan.org
Tue Jan 30 15:10:29 UTC 2024
vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Jan 29 15:18:09 2024 +0100| [1413be2865ba3e4348b4bc699e230ce2c6b9c402] | committer: Nicolas Pomepuy
Stop saving position when history is disabled
> https://code.videolan.org/videolan/vlc-android/commit/1413be2865ba3e4348b4bc699e230ce2c6b9c402
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 1 +
1 file changed, 1 insertion(+)
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 4c84b55aaf..48b5c02c37 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -614,6 +614,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
}
fun saveMediaMeta(end:Boolean = false) = launch(start = CoroutineStart.UNDISPATCHED) outerLaunch@ {
+ if (!Settings.getInstance(AppContextProvider.appContext).getBoolean(PLAYBACK_HISTORY, true)) return at outerLaunch
if (endReachedFor != null && endReachedFor == getCurrentMedia()?.uri.toString() && !end) return at outerLaunch
val titleIdx = player.getTitleIdx()
val currentMedia = getCurrentMedia() ?: return at outerLaunch
More information about the Android
mailing list