diff --git a/src/main/kotlin/app/revanced/patches/twitter/misc/monochrome/patch/MonochromeIconPatch.kt b/src/main/kotlin/app/revanced/patches/twitter/misc/monochrome/patch/MonochromeIconPatch.kt index ed5994283..d5936c7c2 100644 --- a/src/main/kotlin/app/revanced/patches/twitter/misc/monochrome/patch/MonochromeIconPatch.kt +++ b/src/main/kotlin/app/revanced/patches/twitter/misc/monochrome/patch/MonochromeIconPatch.kt @@ -26,28 +26,28 @@ class MonochromeIconPatch : ResourcePatch() { val mipmapV33Directory = resDirectory.resolve("mipmap-anydpi-v33") if (!mipmapV33Directory.isDirectory) Files.createDirectories(mipmapV33Directory.toPath()) - FileWriter( - mipmapV33Directory.resolve("ic_launcher_twitter.xml"), - ).use { - "\n" + - "\n" + - " \n" + - " \n" + - " \n" + - "" + FileWriter(mipmapV33Directory.resolve("ic_launcher_twitter.xml")).use { + it.write( + "\n" + + "\n" + + " \n" + + " \n" + + " \n" + + "" + ) } - FileWriter( - mipmapV33Directory.resolve("ic_launcher_twitter_round.xml"), - ).use { - "\n" + - "\n" + - " \n" + - " \n" + - " \n" + - "" + FileWriter(mipmapV33Directory.resolve("ic_launcher_twitter_round.xml")).use { + it.write( + "\n" + + "\n" + + " \n" + + " \n" + + " \n" + + "" + ) } return PatchResultSuccess()