From ea99d77fda239c54d029223150f20cd69f9665c3 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Mon, 16 Oct 2023 09:05:35 +0700 Subject: [PATCH] ExtensionLoader: Fix incorrect ext file deletion (#10026) Ref c492efcb31775a65464cf68b4a249bc5bb8e6016 --- .../java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt b/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt index 28161fcb33..c43af2fdc4 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/extension/util/ExtensionLoader.kt @@ -98,7 +98,7 @@ internal object ExtensionLoader { val target = File(getPrivateExtensionDir(context), "${extension.packageName}.$PRIVATE_EXTENSION_EXTENSION") return try { - file.delete() + target.delete() file.copyAndSetReadOnlyTo(target, overwrite = true) if (currentExtension != null) { ExtensionInstallReceiver.notifyReplaced(context, extension.packageName)