From 26ed7f04005511b2e39df2d6cce9474943a989ee Mon Sep 17 00:00:00 2001 From: LooKeR Date: Fri, 6 May 2022 13:39:29 +0530 Subject: [PATCH] Fix build broken by ec9618e --- .../patches/youtube/misc/FixLocaleConfigErrorPatch.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/FixLocaleConfigErrorPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/FixLocaleConfigErrorPatch.kt index 77058dbe1..873ea1ad0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/FixLocaleConfigErrorPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/FixLocaleConfigErrorPatch.kt @@ -6,7 +6,7 @@ import app.revanced.patcher.patch.implementation.metadata.PackageMetadata import app.revanced.patcher.patch.implementation.metadata.PatchMetadata import app.revanced.patcher.patch.implementation.misc.PatchResult import app.revanced.patcher.patch.implementation.misc.PatchResultSuccess -import com.sun.org.apache.xerces.internal.dom.ElementImpl +import org.w3c.dom.Element private val compatiblePackages = listOf( PackageMetadata( @@ -31,7 +31,7 @@ class FixLocaleConfigErrorPatch : ResourcePatch( val applicationNode = editor .file .getElementsByTagName("application") - .item(0) as ElementImpl + .item(0) as Element // by replacing the attributes name val attribute = "android:localeConfig" @@ -43,4 +43,4 @@ class FixLocaleConfigErrorPatch : ResourcePatch( return PatchResultSuccess() } -} \ No newline at end of file +}