mirror of
https://github.com/meowarex/rl-mobile.git
synced 2026-08-26 14:07:45 +10:00
New Patch: One-Handed Mode <3
This commit is contained in:
@@ -77,6 +77,12 @@ enum class KnownPatch(
|
||||
titleRes = R.string.patch_quality_badge_colors_title,
|
||||
descRes = R.string.patch_quality_badge_colors_desc,
|
||||
),
|
||||
PlayerOneHanded(
|
||||
order = 37,
|
||||
fileNames = listOf("player-one-handed.patch"),
|
||||
titleRes = R.string.patch_player_one_handed_title,
|
||||
descRes = R.string.patch_player_one_handed_desc,
|
||||
),
|
||||
CoverEverywhere(
|
||||
order = 35,
|
||||
fileNames = listOf(
|
||||
|
||||
@@ -42,6 +42,7 @@ data class PatchOptions(
|
||||
val disabled = (
|
||||
KnownPatch.DebugMenuUnlock.fileNames +
|
||||
KnownPatch.EnableLegacyUi.fileNames +
|
||||
KnownPatch.PlayerOneHanded.fileNames +
|
||||
miniPlayerFiles
|
||||
).toSet()
|
||||
|
||||
|
||||
@@ -270,6 +270,8 @@
|
||||
<string name="patch_player_backdrop_desc">Restores the legacy translucent backdrop blur behind the player.</string>
|
||||
<string name="patch_quality_badge_colors_title">Quality Badge Colors</string>
|
||||
<string name="patch_quality_badge_colors_desc">Brings color back to the player quality badge.</string>
|
||||
<string name="patch_player_one_handed_title">One-Handed Mode</string>
|
||||
<string name="patch_player_one_handed_desc">Mirrors the bottom player buttons left-to-right for easier one-handed reach.</string>
|
||||
<string name="patch_cover_everywhere_title">Cover Everywhere - WIP</string>
|
||||
<string name="patch_cover_everywhere_desc">Applies the blurred backdrop to every Compose based page (Home & Collection)</string>
|
||||
<string name="patch_lyrics_replace_share_button_title">Replace Share Button</string>
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# rl-locals: com/tidal/android/feature/playerscreen/ui/PlayerScreenKt.smali e( 80
|
||||
--- a/com/tidal/android/feature/playerscreen/ui/PlayerScreenKt.smali
|
||||
+++ b/com/tidal/android/feature/playerscreen/ui/PlayerScreenKt.smali
|
||||
@@ -5650,12 +5650,26 @@
|
||||
invoke-static {v2, v15, v7, v9}, Lcom/aspiro/wamp/dynamicpages/ui/compose/f;->a(FLandroidx/compose/ui/Modifier$Companion;Landroidx/compose/runtime/Composer;I)V
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
const/4 v9, 0x0
|
||||
|
||||
+ invoke-static {}, Landroidx/compose/ui/platform/CompositionLocalsKt;->getLocalLayoutDirection()Landroidx/compose/runtime/ProvidableCompositionLocal; # layout-direction local
|
||||
+
|
||||
+ move-result-object v77 # the local
|
||||
+
|
||||
+ sget-object v78, Landroidx/compose/ui/unit/LayoutDirection;->Rtl:Landroidx/compose/ui/unit/LayoutDirection; # right-to-left value
|
||||
+
|
||||
+ invoke-virtual/range {v77 .. v78}, Landroidx/compose/runtime/ProvidableCompositionLocal;->provides(Ljava/lang/Object;)Landroidx/compose/runtime/ProvidedValue; # provide Rtl to local
|
||||
+
|
||||
+ move-result-object v77 # the provided value
|
||||
+
|
||||
+ move-object/from16 v76, v7 # composer
|
||||
+
|
||||
+ invoke-interface/range {v76 .. v77}, Landroidx/compose/runtime/Composer;->startProvider(Landroidx/compose/runtime/ProvidedValue;)V # open Rtl scope (mirror row)
|
||||
+
|
||||
.line 302
|
||||
invoke-static {v15, v9, v1, v2}, Landroidx/compose/foundation/layout/SizeKt;->fillMaxWidth$default(Landroidx/compose/ui/Modifier;FILjava/lang/Object;)Landroidx/compose/ui/Modifier;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
move/from16 v5, v58
|
||||
@@ -6001,12 +6015,14 @@
|
||||
|
||||
invoke-static {v13, v7, v2, v4}, Lcom/tidal/android/feature/playerscreen/ui/composables/m0;->a(ILandroidx/compose/runtime/Composer;Landroidx/compose/ui/Modifier;Lyl0/a;)V
|
||||
|
||||
.line 343
|
||||
invoke-interface {v7}, Landroidx/compose/runtime/Composer;->endNode()V
|
||||
|
||||
+ invoke-interface {v7}, Landroidx/compose/runtime/Composer;->endProvider()V # close Rtl scope (end mirror)
|
||||
+
|
||||
.line 344
|
||||
invoke-static/range {v40 .. v40}, Landroidx/compose/ui/unit/Dp;->constructor-impl(F)F
|
||||
|
||||
move-result v20
|
||||
|
||||
const/16 v21, 0x7
|
||||
Reference in New Issue
Block a user