Skip to content

Commit cef255f

Browse files
committed
...
1 parent 61da9c3 commit cef255f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/kotlin/components/Extensions.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,14 @@ fun File.updateXML(document: Document) {
154154
FileWriter(this.absolutePath).use { it.write(xml) }
155155
}
156156

157-
fun File.removeHiddenAttributes() {
157+
fun File.removeAttributes() {
158158
val content = this.getContent()
159159
.replace("hidden=\"true\"", "")
160160
.replace("hidden=\"false\"", "")
161+
.replace("containsHtml=\"true\"", "")
162+
.replace("containsHtml=\"false\"", "")
163+
.replace("androidTreatment=\"true\"", "")
164+
.replace("androidTreatment=\"false\"", "")
161165
FileWriter(this.absolutePath).use { it.write(content) }
162166
updateXML(this.getXML())
163167
}

src/main/kotlin/components/XParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fun modifyXML(file: File, mainModule: String, key: String, debug: Boolean) {
9090
}
9191

9292
file.updateXML(doc)
93-
file.removeHiddenAttributes()
93+
file.removeAttributes()
9494
if (debug) {
9595
PrintUtils.print(null, file.getContent(), true)
9696
}

0 commit comments

Comments
 (0)