From ac20063e86029c9354f9f172d1e41265b30dfad8 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 29 Jul 2019 03:56:35 -0700 Subject: [PATCH] Disable cache for Magisk Manager --- .../com/topjohnwu/magisk/model/download/RemoteFileService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt b/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt index ee04d9124..bcd11fd2a 100644 --- a/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt +++ b/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt @@ -62,7 +62,7 @@ abstract class RemoteFileService : NotificationService() { } private fun search(subject: DownloadSubject) = Single.fromCallable { - if (!Config.isDownloadCacheEnabled) { + if (!Config.isDownloadCacheEnabled || subject is Manager) { throw IllegalStateException("The download cache is disabled") }