From 63161e9fb357387685294e4a80de94cb351c6713 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 6 Mar 2026 15:31:41 +0100 Subject: [PATCH] fix(YouTube - Hide Shorts components): Find resource id only for 21.05+ --- .../youtube/layout/hide/shorts/HideShortsComponentsPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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