mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-30 05:40:19 +02:00
fix(YouTube/Hide player buttons): remove unused filter
This commit is contained in:
parent
4667cbfde9
commit
5817981c90
@ -7,7 +7,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWith
|
|||||||
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
|
||||||
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
|
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
|
||||||
import app.revanced.patcher.util.smali.ExternalLabel
|
import app.revanced.patcher.util.smali.ExternalLabel
|
||||||
import app.revanced.patches.shared.litho.LithoFilterPatch
|
|
||||||
import app.revanced.patches.youtube.player.buttons.fingerprints.FullScreenButtonFingerprint
|
import app.revanced.patches.youtube.player.buttons.fingerprints.FullScreenButtonFingerprint
|
||||||
import app.revanced.patches.youtube.player.buttons.fingerprints.LithoSubtitleButtonConfigFingerprint
|
import app.revanced.patches.youtube.player.buttons.fingerprints.LithoSubtitleButtonConfigFingerprint
|
||||||
import app.revanced.patches.youtube.player.buttons.fingerprints.MusicAppDeeplinkButtonFingerprint
|
import app.revanced.patches.youtube.player.buttons.fingerprints.MusicAppDeeplinkButtonFingerprint
|
||||||
@ -38,7 +37,6 @@ object PlayerButtonsPatch : BaseBytecodePatch(
|
|||||||
name = "Hide player buttons",
|
name = "Hide player buttons",
|
||||||
description = "Adds an option to hide buttons in the video player.",
|
description = "Adds an option to hide buttons in the video player.",
|
||||||
dependencies = setOf(
|
dependencies = setOf(
|
||||||
LithoFilterPatch::class,
|
|
||||||
SettingsPatch::class,
|
SettingsPatch::class,
|
||||||
SharedResourceIdPatch::class
|
SharedResourceIdPatch::class
|
||||||
),
|
),
|
||||||
@ -56,9 +54,6 @@ object PlayerButtonsPatch : BaseBytecodePatch(
|
|||||||
private const val HAS_NEXT = 5
|
private const val HAS_NEXT = 5
|
||||||
private const val HAS_PREVIOUS = 6
|
private const val HAS_PREVIOUS = 6
|
||||||
|
|
||||||
private const val FILTER_CLASS_DESCRIPTOR =
|
|
||||||
"$COMPONENTS_PATH/CaptionsFilter;"
|
|
||||||
|
|
||||||
override fun execute(context: BytecodeContext) {
|
override fun execute(context: BytecodeContext) {
|
||||||
|
|
||||||
// region patch for hide autoplay button
|
// region patch for hide autoplay button
|
||||||
@ -115,8 +110,6 @@ object PlayerButtonsPatch : BaseBytecodePatch(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LithoFilterPatch.addFilter(FILTER_CLASS_DESCRIPTOR)
|
|
||||||
|
|
||||||
// endregion
|
// endregion
|
||||||
|
|
||||||
// region patch for hide collapse button
|
// region patch for hide collapse button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user