diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt index 08ae72ea1..be6e53936 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt @@ -178,9 +178,9 @@ val hideShortsComponentsPatch = bytecodePatch( // region Hide sound button. - val id = ResourceType.DIMEN["reel_player_right_pivot_v2_size"] - if (!is_21_05_or_greater) { + val id = ResourceType.DIMEN["reel_player_right_pivot_v2_size"] + forEachInstructionAsSequence({ _, method, instruction, index -> if (instruction.wideLiteral != id) return@forEachInstructionAsSequence null