Skip to content

Commit

Permalink
fix: hide-suggested-actions patch is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Mar 11, 2023
1 parent 4dacefb commit e9bb348
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
]
Expand Down Expand Up @@ -72,6 +77,8 @@ class SuggestedActionsPatch : BytecodePatch() {
val errorIndex: Int = patchSuccessArray.indexOf(false)

if (errorIndex == -1) {
context.updatePatchStatus("SuggestedActions")

/*
* Add settings
*/
Expand Down

0 comments on commit e9bb348

Please sign in to comment.