refactor(youtube/hide-info-cards): fix casing

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2023-02-22 06:06:00 +01:00
parent 539ccf43a8
commit b1bea85ce5
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 7 additions and 7 deletions

View File

@ -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
""", """,

View File

@ -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")
) )
) )