fix(YouTube): Overlay buttons patch fails

This commit is contained in:
inotia00 2024-08-08 02:02:27 +09:00
parent 09d07ba5a9
commit 1b73a5a444
2 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,7 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWith
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.PatchException
import app.revanced.patcher.patch.annotation.Patch
import app.revanced.patcher.util.smali.ExternalLabel
import app.revanced.patches.youtube.player.overlaybuttons.fingerprints.PlayerButtonConstructorFingerprint
import app.revanced.patches.youtube.utils.integrations.Constants.UTILS_PATH
@ -21,6 +22,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
import com.android.tools.smali.dexlib2.iface.reference.FieldReference
import com.android.tools.smali.dexlib2.iface.reference.MethodReference
@Patch(dependencies = [VideoInformationPatch::class])
object OverlayButtonsBytecodePatch : BytecodePatch(
setOf(PlayerButtonConstructorFingerprint)
) {

View File

@ -9,7 +9,6 @@ import app.revanced.patches.youtube.utils.integrations.Constants.OVERLAY_BUTTONS
import app.revanced.patches.youtube.utils.pip.PiPStateHookPatch
import app.revanced.patches.youtube.utils.playercontrols.PlayerControlsPatch
import app.revanced.patches.youtube.utils.settings.SettingsPatch
import app.revanced.patches.youtube.video.information.VideoInformationPatch
import app.revanced.util.ResourceGroup
import app.revanced.util.copyResources
import app.revanced.util.copyXmlNode
@ -33,8 +32,7 @@ object OverlayButtonsPatch : BaseResourcePatch(
PiPStateHookPatch::class,
PlayerControlsPatch::class,
SettingsPatch::class,
OverlayButtonsBytecodePatch::class,
VideoInformationPatch::class
OverlayButtonsBytecodePatch::class
),
compatiblePackages = COMPATIBLE_PACKAGE
) {