Fix Lyrics Fade Region

This commit is contained in:
2026-05-24 22:55:00 +10:00
parent 324a6eb6c8
commit e105a3eb35
8 changed files with 31 additions and 189 deletions
+30 -4
View File
@@ -1,11 +1,37 @@
--- a/com/tidal/android/feature/playerscreen/ui/composables/k1.smali
+++ b/com/tidal/android/feature/playerscreen/ui/composables/k1.smali
@@ -64,7 +64,7 @@
@@ -64,26 +64,29 @@
.line 16
.line 17
- iget v2, p0, Lcom/tidal/android/feature/playerscreen/ui/composables/k1;->a:F
+ const/high16 v2, 0x43480000 # hardcode top fade region to 200dp (decouple from contentPadding)
+ const/high16 v2, 0x43200000 # 160f startDp — alpha clamps to 0 above this, hiding lyrics under the pill
.line 18
.line 19
invoke-interface {p1, v2}, Landroidx/compose/ui/unit/Density;->toPx-0680j_4(F)F
.line 20
.line 21
.line 22
- move-result v3
+ move-result v2 # startY in px
+
+ const/high16 v3, 0x435c0000 # 220f endDp — 60dp transition, alpha clamps to 1 below this
+
+ invoke-interface {p1, v3}, Landroidx/compose/ui/unit/Density;->toPx-0680j_4(F)F
+
+ move-result v3 # endY in px
.line 23
const/16 v5, 0x8
.line 24
.line 25
const/4 v6, 0x0
- .line 26
- const/4 v2, 0x0
-
.line 27
const/4 v4, 0x0