mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-11 20:17:51 +01:00
refactor(youtube/hide-info-cards): fix casing
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
539ccf43a8
commit
b1bea85ce5
@ -25,10 +25,10 @@ import org.jf.dexlib2.builder.instruction.BuilderInstruction35c
|
|||||||
@Patch
|
@Patch
|
||||||
@DependsOn([IntegrationsPatch::class, HideInfocardsResourcePatch::class])
|
@DependsOn([IntegrationsPatch::class, HideInfocardsResourcePatch::class])
|
||||||
@Name("hide-info-cards")
|
@Name("hide-info-cards")
|
||||||
@Description("Hides info-cards in videos.")
|
@Description("Hides info cards in videos.")
|
||||||
@HideInfocardsCompatibility
|
@HideInfocardsCompatibility
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class HideInfocardsPatch : BytecodePatch(
|
class HideInfoCardsPatch : BytecodePatch(
|
||||||
listOf(
|
listOf(
|
||||||
InfocardsIncognitoParentFingerprint,
|
InfocardsIncognitoParentFingerprint,
|
||||||
InfocardsMethodCallFingerprint,
|
InfocardsMethodCallFingerprint,
|
||||||
@ -47,7 +47,7 @@ class HideInfocardsPatch : BytecodePatch(
|
|||||||
addInstructions(
|
addInstructions(
|
||||||
invokeInstructionIndex,
|
invokeInstructionIndex,
|
||||||
"invoke-static {v${(instruction(invokeInstructionIndex) as? BuilderInstruction35c)?.registerC}}," +
|
"invoke-static {v${(instruction(invokeInstructionIndex) as? BuilderInstruction35c)?.registerC}}," +
|
||||||
" Lapp/revanced/integrations/patches/HideInfocardsPatch;->hideInfocardsIncognito(Landroid/view/View;)V"
|
" Lapp/revanced/integrations/patches/HideInfoCardsPatch;->hideInfoCardsIncognito(Landroid/view/View;)V"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ class HideInfocardsPatch : BytecodePatch(
|
|||||||
|
|
||||||
hideInfocardsCallMethod.addInstructions(
|
hideInfocardsCallMethod.addInstructions(
|
||||||
invokeInterfaceIndex, """
|
invokeInterfaceIndex, """
|
||||||
invoke-static {}, Lapp/revanced/integrations/patches/HideInfocardsPatch;->hideInfocardsMethodCall()Z
|
invoke-static {}, Lapp/revanced/integrations/patches/HideInfoCardsPatch;->hideInfoCardsMethodCall()Z
|
||||||
move-result v$toggleRegister
|
move-result v$toggleRegister
|
||||||
if-nez v$toggleRegister, :hide_info_cards
|
if-nez v$toggleRegister, :hide_info_cards
|
||||||
""",
|
""",
|
@ -24,10 +24,10 @@ class HideInfocardsResourcePatch : ResourcePatch {
|
|||||||
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_hide_infocards",
|
"revanced_hide_infocards",
|
||||||
StringResource("revanced_hide_infocards_title", "Hide info-cards"),
|
StringResource("revanced_hide_infocards_title", "Hide info cards"),
|
||||||
true,
|
true,
|
||||||
StringResource("revanced_hide_infocards_summary_on", "Info-cards are hidden"),
|
StringResource("revanced_hide_infocards_summary_on", "Info cards are hidden"),
|
||||||
StringResource("revanced_hide_infocards_summary_off", "Info-cards are shown")
|
StringResource("revanced_hide_infocards_summary_off", "Info cards are shown")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user