fix: captions are disabled in Shorts when hide-auto-captions patch is enabled

This commit is contained in:
inotia00 2023-03-19 12:51:11 +09:00
parent 3b827a24e1
commit 07e02f5c4e

View File

@ -18,13 +18,19 @@ import app.revanced.patches.shared.annotation.YouTubeCompatibility
import app.revanced.patches.shared.fingerprints.SubtitleButtonControllerFingerprint import app.revanced.patches.shared.fingerprints.SubtitleButtonControllerFingerprint
import app.revanced.patches.shared.fingerprints.SubtitleTrackFingerprint import app.revanced.patches.shared.fingerprints.SubtitleTrackFingerprint
import app.revanced.patches.youtube.layout.general.autocaptions.fingerprints.StartVideoInformerFingerprint import app.revanced.patches.youtube.layout.general.autocaptions.fingerprints.StartVideoInformerFingerprint
import app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
import app.revanced.util.integrations.Constants.GENERAL_LAYOUT import app.revanced.util.integrations.Constants.GENERAL_LAYOUT
@Patch @Patch
@Name("hide-auto-captions") @Name("hide-auto-captions")
@Description("Hide captions from being automatically enabled.") @Description("Hide captions from being automatically enabled.")
@DependsOn([SettingsPatch::class]) @DependsOn(
[
PlayerTypeHookPatch::class,
SettingsPatch::class
]
)
@YouTubeCompatibility @YouTubeCompatibility
@Version("0.0.1") @Version("0.0.1")
class AutoCaptionsPatch : BytecodePatch( class AutoCaptionsPatch : BytecodePatch(