mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-24 03:01:03 +00:00
fix(youtube/bottom-controls-resource-patch): use correct length for nameSpaceLength (#1401)
This commit is contained in:
@@ -68,7 +68,7 @@ class BottomControlsResourcePatch : ResourcePatch {
|
|||||||
"$namespace/$lastLeftOf"
|
"$namespace/$lastLeftOf"
|
||||||
|
|
||||||
// set lastLeftOf attribute to the the current element
|
// set lastLeftOf attribute to the the current element
|
||||||
val nameSpaceLength = 4
|
val nameSpaceLength = 5
|
||||||
lastLeftOf = element.attributes.getNamedItem("android:id").nodeValue.substring(nameSpaceLength)
|
lastLeftOf = element.attributes.getNamedItem("android:id").nodeValue.substring(nameSpaceLength)
|
||||||
|
|
||||||
// copy the element
|
// copy the element
|
||||||
|
|||||||
Reference in New Issue
Block a user