From fa8fd0eddb4db2e0e2d2e640736c5d85439cc6d8 Mon Sep 17 00:00:00 2001 From: Sculas Date: Wed, 7 Sep 2022 22:37:53 +0200 Subject: [PATCH] refactor: cleanup AmoledPatch --- .../patches/youtube/layout/amoled/patch/AmoledPatch.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/patch/AmoledPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/patch/AmoledPatch.kt index 101e4efa4..a969f6d8a 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/patch/AmoledPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/amoled/patch/AmoledPatch.kt @@ -12,7 +12,6 @@ import app.revanced.patcher.patch.impl.ResourcePatch import app.revanced.patches.youtube.layout.amoled.annotations.AmoledCompatibility import app.revanced.patches.youtube.misc.manifest.patch.FixLocaleConfigErrorPatch import org.w3c.dom.Element -import java.io.File @Patch @DependsOn([FixLocaleConfigErrorPatch::class]) @@ -22,7 +21,7 @@ import java.io.File @Version("0.0.1") class AmoledPatch : ResourcePatch() { override fun execute(data: ResourceData): PatchResult { - data.xmlEditor["res${File.separator}values${File.separator}colors.xml"].use { editor -> + data.xmlEditor["res/values/colors.xml"].use { editor -> val resourcesNode = editor.file.getElementsByTagName("resources").item(0) as Element for (i in 0 until resourcesNode.childNodes.length) {