[Android] AudioPlayer: scan progress update margin
Duncan McNamara
git at videolan.org
Fri Nov 5 06:59:33 UTC 2021
vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Thu Nov 4 14:54:42 2021 +0100| [8bf1753c2a70ef2ef344889b397b252523dae903] | committer: Nicolas Pomepuy
AudioPlayer: scan progress update margin
When the playerBehavior has a change in peekHeight, trigger an update to
the margin of the scan_progress.
> https://code.videolan.org/videolan/vlc-android/commit/8bf1753c2a70ef2ef344889b397b252523dae903
---
.../src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
index dcac53e44..d00807e90 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/AudioPlayerContainerActivity.kt
@@ -171,6 +171,9 @@ open class AudioPlayerContainerActivity : BaseActivity() {
if (bottomIsHiddden) bottomBehavior?.setCollapsed()
playerBehavior.peekHeight = resources.getDimensionPixelSize(R.dimen.player_peek_height)
updateFragmentMargins()
+ playerBehavior.setPeekHeightListener {
+ applyMarginToProgressBar(playerBehavior.peekHeight)
+ }
playerBehavior.addBottomSheetCallback(object : BottomSheetCallback() {
override fun onSlide(bottomSheet: View, slideOffset: Float) {
audioPlayer.onSlide(slideOffset)
More information about the Android
mailing list