mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
fix: loop in amoled
patch
This commit is contained in:
parent
d61bac4f82
commit
c4c86b65fd
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class AmoledPatch : ResourcePatch() {
|
|||
data.getXmlEditor("res${File.separator}values${File.separator}colors.xml").use { editor ->
|
||||
val resourcesNode = editor.file.getElementsByTagName("resources").item(0) as Element
|
||||
|
||||
for (i in 0..resourcesNode.childNodes.length) {
|
||||
for (i in 0 until resourcesNode.childNodes.length) {
|
||||
val node = resourcesNode.childNodes.item(i) as Element
|
||||
|
||||
node.nodeValue = when (node.getAttribute("name")) {
|
||||
|
|
Loading…
Reference in a new issue