[Android] Mv PLAYLIST_TYPE_VIDEO_RESUME to PLAYLIST_TYPE_ALL

Duncan McNamara git at videolan.org
Tue Feb 20 08:23:25 UTC 2024


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Wed Jan 31 10:42:06 2024 +0100| [d7bf10b79619f8074b132de2cc44affb04119bb0] | committer: Nicolas Pomepuy

Mv PLAYLIST_TYPE_VIDEO_RESUME to PLAYLIST_TYPE_ALL

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

 application/resources/src/main/java/org/videolan/resources/Constants.kt | 2 +-
 .../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/resources/src/main/java/org/videolan/resources/Constants.kt b/application/resources/src/main/java/org/videolan/resources/Constants.kt
index bf40a028b4..56a561769a 100644
--- a/application/resources/src/main/java/org/videolan/resources/Constants.kt
+++ b/application/resources/src/main/java/org/videolan/resources/Constants.kt
@@ -71,7 +71,7 @@ val ACTION_REMOTE_GENERIC = "remote.".buildPkgString()
 @JvmField val CAR_SETTINGS = "car.SETTINGS".buildPkgString()
 const val PLAYLIST_TYPE_AUDIO = 0
 const val PLAYLIST_TYPE_VIDEO = 1
-const val PLAYLIST_TYPE_VIDEO_RESUME = 2
+const val PLAYLIST_TYPE_ALL = 2
 const val MEDIALIBRARY_PAGE_SIZE = 500
 const val DRIVING_MODE_APP_PKG = "com.google.android.googlequicksearchbox"
 const val ANDROID_AUTO_APP_PKG = "com.google.android.projection.gearhead"
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index c3f9e9c396..60c52c5367 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -2074,7 +2074,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
             } else if (service.hasMedia() && !displayManager.isPrimary) {
                 onPlaying()
             } else {
-                service.loadLastPlaylist(PLAYLIST_TYPE_VIDEO_RESUME)
+                service.loadLastPlaylist(PLAYLIST_TYPE_ALL)
             }
             if (itemTitle != null) title = itemTitle
             if (overlayDelegate.isHudRightBindingInitialized()) {



More information about the Android mailing list