[Android] Refresh bookmarks on new entry
Robert Stone
git at videolan.org
Wed Nov 20 06:47:54 UTC 2024
vlc-android | branch: master | Robert Stone <rhstone at gmail.com> | Sat Aug 10 08:51:18 2024 -0700| [1d8163b7f4f5478a01cfcb10f42fc9d3d1fa69f2] | committer: Duncan McNamara
Refresh bookmarks on new entry
> https://code.videolan.org/videolan/vlc-android/commit/1d8163b7f4f5478a01cfcb10f42fc9d3d1fa69f2
---
application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt | 1 -
application/vlc-android/src/org/videolan/vlc/PlaybackService.kt | 2 +-
.../vlc-android/src/org/videolan/vlc/viewmodels/BookmarkModel.kt | 5 +----
3 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt b/application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt
index 56eb4910db..0d63b70ec8 100644
--- a/application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt
+++ b/application/vlc-android/src/org/videolan/vlc/MediaSessionCallback.kt
@@ -49,7 +49,6 @@ import org.videolan.tools.removeQuery
import org.videolan.tools.retrieveParent
import org.videolan.vlc.gui.helpers.MediaComparators
import org.videolan.vlc.media.MediaSessionBrowser
-import org.videolan.vlc.util.PlaybackAction
import org.videolan.vlc.util.TextUtils
import org.videolan.vlc.util.VoiceSearchParams
import org.videolan.vlc.util.awaitMedialibraryStarted
diff --git a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
index 785fb15bd5..895b0337e9 100644
--- a/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
+++ b/application/vlc-android/src/org/videolan/vlc/PlaybackService.kt
@@ -1598,7 +1598,7 @@ class PlaybackService : MediaBrowserServiceCompat(), LifecycleOwner, CoroutineSc
endTime += 5000L
msg?.let { subtitleMessage.addLast(Pair(it, endTime)) }
}
- updateMetadata()
+ executeUpdate()
}
private fun getSubtitleMessage(): String? {
diff --git a/application/vlc-android/src/org/videolan/vlc/viewmodels/BookmarkModel.kt b/application/vlc-android/src/org/videolan/vlc/viewmodels/BookmarkModel.kt
index 380c592336..fae61dcdb5 100644
--- a/application/vlc-android/src/org/videolan/vlc/viewmodels/BookmarkModel.kt
+++ b/application/vlc-android/src/org/videolan/vlc/viewmodels/BookmarkModel.kt
@@ -25,7 +25,6 @@
package org.videolan.vlc.viewmodels
import android.content.Context
-import android.util.Log
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.*
import kotlinx.coroutines.*
@@ -37,7 +36,6 @@ import org.videolan.libvlc.interfaces.IMedia
import org.videolan.medialibrary.Tools
import org.videolan.medialibrary.interfaces.media.Bookmark
import org.videolan.tools.livedata.LiveDataset
-import org.videolan.vlc.BuildConfig
import org.videolan.vlc.PlaybackService
import org.videolan.vlc.R
@@ -85,8 +83,7 @@ class BookmarkModel : ViewModel(), PlaybackService.Callback {
ViewModelProvider(activity).get(BookmarkModel::class.java)
}
- override fun update() {
- }
+ override fun update() = refresh()
override fun onMediaEvent(event: IMedia.Event) {
}
More information about the Android
mailing list