From e9bb348bc6f7dee1c83c5515916a4eecec69a467 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sun, 12 Mar 2023 01:50:16 +0900 Subject: [PATCH] fix: `hide-suggested-actions` patch is broken --- .../player/suggestactions/patch/SuggestedActionsPatch.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/player/suggestactions/patch/SuggestedActionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/player/suggestactions/patch/SuggestedActionsPatch.kt index 976493f88..d2fd2ee4e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/player/suggestactions/patch/SuggestedActionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/player/suggestactions/patch/SuggestedActionsPatch.kt @@ -14,7 +14,10 @@ import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patches.shared.annotation.YouTubeCompatibility import app.revanced.patches.shared.patch.mapping.ResourceMappingPatch +import app.revanced.patches.youtube.misc.litho.patch.LithoFilterPatch +import app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch +import app.revanced.util.bytecode.BytecodeHelper.updatePatchStatus import org.jf.dexlib2.Opcode import org.jf.dexlib2.iface.instruction.formats.Instruction22c import org.jf.dexlib2.iface.instruction.formats.Instruction31i @@ -24,6 +27,8 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction31i @Description("Hide the suggested actions bar inside the player.") @DependsOn( [ + LithoFilterPatch::class, + PlayerTypeHookPatch::class, ResourceMappingPatch::class, SettingsPatch::class ] @@ -72,6 +77,8 @@ class SuggestedActionsPatch : BytecodePatch() { val errorIndex: Int = patchSuccessArray.indexOf(false) if (errorIndex == -1) { + context.updatePatchStatus("SuggestedActions") + /* * Add settings */