From 7190066a8ded8b59970483a81d7902526d552093 Mon Sep 17 00:00:00 2001 From: aliernfrog <45766489+aliernfrog@users.noreply.github.com> Date: Sat, 31 Dec 2022 00:09:29 +0300 Subject: [PATCH] fix(youtube/bottom-controls-resource-patch): use correct length for `nameSpaceLength` (#1401) --- .../resource/patch/BottomControlsResourcePatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/resource/patch/BottomControlsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/resource/patch/BottomControlsResourcePatch.kt index fbba6efd3..4e94b219e 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/resource/patch/BottomControlsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/playercontrols/resource/patch/BottomControlsResourcePatch.kt @@ -68,7 +68,7 @@ class BottomControlsResourcePatch : ResourcePatch { "$namespace/$lastLeftOf" // set lastLeftOf attribute to the the current element - val nameSpaceLength = 4 + val nameSpaceLength = 5 lastLeftOf = element.attributes.getNamedItem("android:id").nodeValue.substring(nameSpaceLength) // copy the element