mirror of
https://github.com/meowarex/rl-mobile.git
synced 2026-08-26 22:17:44 +10:00
Refactor Backdrop <3
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
--- a/com/tidal/android/feature/playerscreen/ui/PlayerScreenKt.smali
|
||||
+++ b/com/tidal/android/feature/playerscreen/ui/PlayerScreenKt.smali
|
||||
@@ -4613,8 +4613,10 @@
|
||||
@@ -4613,8 +4613,8 @@
|
||||
|
||||
move-object/from16 v25, v10
|
||||
|
||||
+ invoke-static {}, Lradiant/HomeBackdrop;->setModeKawarp()V # RL: mirror the mode to Cover Everywhere
|
||||
+
|
||||
.line 171
|
||||
- invoke-static/range {v16 .. v26}, Lcom/tidal/android/feature/playerscreen/ui/composables/p3;->b(Lcom/tidal/android/feature/playerscreen/ui/model/PlayerBackgroundStyle;JILjava/lang/String;ZZLam0/a;Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;I)V
|
||||
+ invoke-static/range {v16 .. v26}, Lradiant/Kawarp;->b(Lcom/tidal/android/feature/playerscreen/ui/model/PlayerBackgroundStyle;JILjava/lang/String;ZZLam0/a;Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;I)V
|
||||
@@ -27,53 +25,16 @@
|
||||
.line 7
|
||||
--- a/radiant/HomeBackdrop.smali
|
||||
+++ b/radiant/HomeBackdrop.smali
|
||||
@@ -83,6 +83,16 @@
|
||||
return-void
|
||||
.end method
|
||||
|
||||
+.method public static setModeKawarp()V
|
||||
+ .locals 1
|
||||
+
|
||||
+ const/4 v0, 0x3
|
||||
+
|
||||
+ sput v0, Lradiant/HomeBackdrop;->mode:I
|
||||
+
|
||||
+ return-void
|
||||
+.end method
|
||||
+
|
||||
# from the mini-player state ctor (t.<init>) whenever play state changes.
|
||||
.method public static onPlayState(Lcom/tidal/android/feature/appscaffold/ui/MiniPlayerContract$PlayState;)V
|
||||
.locals 2
|
||||
@@ -363,8 +373,13 @@
|
||||
|
||||
const/4 v11, 0x2
|
||||
|
||||
+ if-eq v10, v11, :rl_live_play
|
||||
+
|
||||
+ const/4 v11, 0x3 # RL: Kawarp follows live play state as well
|
||||
+
|
||||
if-ne v10, v11, :rl_mode_done
|
||||
|
||||
+ :rl_live_play
|
||||
sget-object v10, Lradiant/HomeBackdrop;->isPlayingState:Landroidx/compose/runtime/MutableState;
|
||||
|
||||
invoke-interface {v10}, Landroidx/compose/runtime/State;->getValue()Ljava/lang/Object;
|
||||
@@ -378,6 +393,18 @@
|
||||
move-result v10
|
||||
|
||||
:rl_mode_done
|
||||
+ # RL: Kawarp renders its own AGSL backdrop rather than TIDAL's blurred cover
|
||||
+ sget v11, Lradiant/HomeBackdrop;->mode:I
|
||||
+
|
||||
+ const/4 v12, 0x3
|
||||
+
|
||||
+ if-ne v11, v12, :rl_native_backdrop
|
||||
+
|
||||
+ invoke-static {v8, v9, v10, v13, v0}, Lradiant/Kawarp;->render(ILjava/lang/String;ZLandroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;)V
|
||||
+
|
||||
+ goto :skip
|
||||
+
|
||||
+ :rl_native_backdrop
|
||||
const/4 v11, 0x0 # v11 = isSeeking = false
|
||||
@@ -358,11 +358,7 @@
|
||||
|
||||
const/4 v12, 0x0 # v12 = progress callback = null (unused while not seeking)
|
||||
|
||||
- move-object v14, v0 # v14 = composer
|
||||
-
|
||||
- const/4 v15, 0x0 # v15 = changed flags
|
||||
-
|
||||
- invoke-static/range {v8 .. v15}, Lcom/tidal/android/feature/playerscreen/ui/composables/p3;->a(ILjava/lang/String;ZZLam0/a;Landroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;I)V
|
||||
+ invoke-static {v8, v9, v10, v13, v0}, Lradiant/Kawarp;->render(ILjava/lang/String;ZLandroidx/compose/ui/Modifier;Landroidx/compose/runtime/Composer;)V # RL: Radiant AGSL backdrop
|
||||
|
||||
:skip
|
||||
invoke-interface {v0}, Landroidx/compose/runtime/Composer;->endReplaceGroup()V
|
||||
|
||||
Reference in New Issue
Block a user