From 5ed0708fb3d4be062c1953676be8b270c85246ec Mon Sep 17 00:00:00 2001 From: inotia00 Date: Mon, 18 Sep 2023 00:10:40 +0900 Subject: [PATCH] fix(youtube/hide-handle): patch information contains incorrect patch name --- .../personalinformation/patch/HideEmailAddressPatch.kt | 10 ++++++++-- .../resources/youtube/settings/xml/revanced_prefs.xml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/personalinformation/patch/HideEmailAddressPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/personalinformation/patch/HideEmailAddressPatch.kt index 6c1d8e467..e26656770 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/personalinformation/patch/HideEmailAddressPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/personalinformation/patch/HideEmailAddressPatch.kt @@ -11,6 +11,7 @@ import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.youtube.general.personalinformation.fingerprints.AccountSwitcherAccessibilityLabelFingerprint import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility +import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch import app.revanced.patches.youtube.utils.settings.resource.patch.SettingsPatch import app.revanced.util.integrations.Constants.GENERAL import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @@ -18,7 +19,12 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Patch @Name("Hide handle") @Description("Hides the handle in the account switcher.") -@DependsOn([SettingsPatch::class]) +@DependsOn( + [ + SettingsPatch::class, + SharedResourceIdPatch::class + ] +) @YouTubeCompatibility class HideEmailAddressPatch : BytecodePatch( listOf(AccountSwitcherAccessibilityLabelFingerprint) @@ -49,7 +55,7 @@ class HideEmailAddressPatch : BytecodePatch( ) ) - SettingsPatch.updatePatchStatus("hide-email-address") + SettingsPatch.updatePatchStatus("hide-handle") } } diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml index 25fc55b6a..2ed070692 100644 --- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml +++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml @@ -322,8 +322,8 @@ - +