[Android] Update time when seeking in audio player
Nicolas Pomepuy
git at videolan.org
Mon Mar 20 08:35:27 UTC 2023
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Mar 20 08:37:00 2023 +0100| [9ca51e629d78b3805643ae7940e2a270ca6a9b53] | committer: Nicolas Pomepuy
Update time when seeking in audio player
It allows tapping multiple times on the seek buttons and
seeking while the player is paused
Fixes #2762
> https://code.videolan.org/videolan/vlc-android/commit/9ca51e629d78b3805643ae7940e2a270ca6a9b53
---
application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
index c243a947e9..65e2994077 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/audio/AudioPlayer.kt
@@ -564,6 +564,7 @@ class AudioPlayer : Fragment(), PlaylistAdapter.IPlayer, TextWatcher, IAudioPlay
if (position < 0) position = 0
if (position > service.length) position = service.length
service.seek(position, service.length.toDouble(), true)
+ service.playlistManager.player.updateProgress(position)
if (service.playlistManager.player.lastPosition == 0.0f && (forward || service.getTime() > 0))
UiTools.snacker(requireActivity(), getString(R.string.unseekable_stream))
}
More information about the Android
mailing list