mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-01 05:32:54 +01:00
refactor(twitter/dynamic-color): remove formatting in XML (#680)
This commit is contained in:
parent
ce09ace60b
commit
6e60fa6596
@ -33,14 +33,8 @@ class DynamicColorPatch : ResourcePatch() {
|
||||
val colorsXml = it.resolve("colors.xml")
|
||||
|
||||
if(!colorsXml.exists()) {
|
||||
FileWriter(
|
||||
colorsXml,
|
||||
).use {
|
||||
it.write(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
|
||||
"<resources>\n" +
|
||||
"</resources>".trimIndent()
|
||||
)
|
||||
FileWriter(colorsXml).use {
|
||||
it.write("<?xml version=\"1.0\" encoding=\"utf-8\"?><resources></resources>")
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -90,4 +84,4 @@ class DynamicColorPatch : ResourcePatch() {
|
||||
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user