fix: qualifying Element with wrong package

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2022-05-07 21:36:05 +02:00
parent e506d8fd8c
commit 024fa867e1
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
2 changed files with 3 additions and 3 deletions

View file

@ -4,7 +4,7 @@
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="azul-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

View file

@ -5,7 +5,7 @@ import app.revanced.patcher.patch.implementation.ResourcePatch
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
class ExampleResourcePatch : ResourcePatch(
PatchMetadata(
@ -23,7 +23,7 @@ class ExampleResourcePatch : ResourcePatch(
val element = editor
.file
.getElementsByTagName("application")
.item(0) as ElementImpl
.item(0) as Element
element
.setAttribute(
"exampleAttribute",