fix(youtube/bottom-controls-resource-patch): use correct length for nameSpaceLength (#1401)

This commit is contained in:
aliernfrog 2022-12-31 00:09:29 +03:00 committed by GitHub
parent 7960d7f8b1
commit 7190066a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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