fix(youtube/hide-handle): patch information contains incorrect patch name

This commit is contained in:
inotia00 2023-09-18 00:10:40 +09:00
parent 8b5036e6a6
commit 5ed0708fb3
2 changed files with 9 additions and 3 deletions

View File

@ -11,6 +11,7 @@ import app.revanced.patcher.patch.annotations.DependsOn
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patches.youtube.general.personalinformation.fingerprints.AccountSwitcherAccessibilityLabelFingerprint import app.revanced.patches.youtube.general.personalinformation.fingerprints.AccountSwitcherAccessibilityLabelFingerprint
import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility 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.patches.youtube.utils.settings.resource.patch.SettingsPatch
import app.revanced.util.integrations.Constants.GENERAL import app.revanced.util.integrations.Constants.GENERAL
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
@ -18,7 +19,12 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
@Patch @Patch
@Name("Hide handle") @Name("Hide handle")
@Description("Hides the handle in the account switcher.") @Description("Hides the handle in the account switcher.")
@DependsOn([SettingsPatch::class]) @DependsOn(
[
SettingsPatch::class,
SharedResourceIdPatch::class
]
)
@YouTubeCompatibility @YouTubeCompatibility
class HideEmailAddressPatch : BytecodePatch( class HideEmailAddressPatch : BytecodePatch(
listOf(AccountSwitcherAccessibilityLabelFingerprint) listOf(AccountSwitcherAccessibilityLabelFingerprint)
@ -49,7 +55,7 @@ class HideEmailAddressPatch : BytecodePatch(
) )
) )
SettingsPatch.updatePatchStatus("hide-email-address") SettingsPatch.updatePatchStatus("hide-handle")
} }
} }

View File

@ -322,8 +322,8 @@
<Preference android:title="hide-channel-avatar-section" android:summary="@string/revanced_patches_excluded" android:selectable="false"/> <Preference android:title="hide-channel-avatar-section" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="hide-crowdfunding-box" android:summary="@string/revanced_patches_excluded" android:selectable="false"/> <Preference android:title="hide-crowdfunding-box" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="hide-description-components" android:summary="@string/revanced_patches_excluded" android:selectable="false"/> <Preference android:title="hide-description-components" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="hide-email-address" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="hide-floating-microphone" android:summary="@string/revanced_patches_excluded" android:selectable="false"/> <Preference android:title="hide-floating-microphone" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="hide-handle" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="hide-layout-components" android:summary="@string/revanced_patches_excluded" android:selectable="false"/> <Preference android:title="hide-layout-components" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="hide-latest-videos-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/> <Preference android:title="hide-latest-videos-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
<Preference android:title="hide-load-more-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/> <Preference android:title="hide-load-more-button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>