mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-10-26 16:45:26 +00:00
Fix player hover highlight by isolating the seek ripple (#2194)
(cherry picked from commit 90400b5bbd)
This commit is contained in:
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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user