[Android] Allow changing the audio player time display by tapping the duration text

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:42:31 2023 +0100| [9a290ab72a83770b669ccd63e0274451dca50fba] | committer: Nicolas Pomepuy

Allow changing the audio player time display by tapping the duration text

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

 application/vlc-android/res/layout-land/audio_player.xml | 1 +
 application/vlc-android/res/layout/audio_player.xml      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/application/vlc-android/res/layout-land/audio_player.xml b/application/vlc-android/res/layout-land/audio_player.xml
index 21708350f7..247a283707 100644
--- a/application/vlc-android/res/layout-land/audio_player.xml
+++ b/application/vlc-android/res/layout-land/audio_player.xml
@@ -667,6 +667,7 @@
                 android:layout_marginEnd="8dp"
                 android:contentDescription="@string/length"
                 android:importantForAccessibility="no"
+                android:onClick="@{fragment::onTimeLabelClick}"
                 android:elevation="4dp"
                 android:text="@string/time_0"
                 android:textColor="?attr/font_default"
diff --git a/application/vlc-android/res/layout/audio_player.xml b/application/vlc-android/res/layout/audio_player.xml
index 21c1a37e9a..4aff1034f7 100644
--- a/application/vlc-android/res/layout/audio_player.xml
+++ b/application/vlc-android/res/layout/audio_player.xml
@@ -597,6 +597,7 @@
                 android:importantForAccessibility="no"
                 android:layout_marginEnd="@dimen/default_margin"
                 android:background="?attr/selectableItemBackgroundBorderless"
+                android:onClick="@{fragment::onTimeLabelClick}"
                 android:contentDescription="@string/length"
                 android:elevation="4dp"
                 android:text="@string/time_0"



More information about the Android mailing list