From de22e3f03ef1d6db08f9446f02e687721d9017d7 Mon Sep 17 00:00:00 2001 From: Ushie Date: Fri, 30 Sep 2022 21:00:29 +0300 Subject: [PATCH] fix(twitter/monochrome-icon): add missing `File.write` call (#682) --- .../monochrome/patch/MonochromeIconPatch.kt | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) 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()