Fix player hover highlight by isolating the seek ripple (#2194)

(cherry picked from commit 90400b5bbd)
This commit is contained in:
Manuel Morales authored and Niels van Velzen committed 2026-09-13 18:21:51 +02:00
1 parent 1ec9d65476
commit 9a5f9be6a7
2 files changed
+10 -2

No files matched your search

@@ -144,7 +144,7 @@ class PlayerGestureHelper(
val isFastForward = e.x.toInt() > viewCenterX
// Show ripple effect
playerView.foreground?.apply {
playerBinding.seekRippleOverlay.foreground?.apply {
val left = if (isFastForward) viewCenterX else 0
val right = if (isFastForward) viewWidth else viewCenterX
setBounds(left, viewCenterY - viewCenterX / 2, right, viewCenterY + viewCenterX / 2)
+9 -1
View File
@@ -10,10 +10,18 @@
android:id="@+id/player_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="@drawable/ripple_background"
app:pause_icon="@drawable/ic_pause_black_42dp"
app:play_icon="@drawable/ic_play_black_42dp" />
<View
android:id="@+id/seek_ripple_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="false"
android:focusable="false"
android:importantForAccessibility="no"
android:foreground="@drawable/ripple_background" />
<FrameLayout
android:id="@+id/player_overlay"
android:layout_width="match_parent"