From 8033a94ee203dc1c0bb717e5b01670fd30a7fd4d Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 7 Jan 2024 16:05:31 -0500 Subject: [PATCH] Trusting new extension shouldn't revoke other irrelevant extensions --- .../java/eu/kanade/domain/source/interactor/TrustExtension.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/domain/source/interactor/TrustExtension.kt b/app/src/main/java/eu/kanade/domain/source/interactor/TrustExtension.kt index f6da6613d..1608d6adb 100644 --- a/app/src/main/java/eu/kanade/domain/source/interactor/TrustExtension.kt +++ b/app/src/main/java/eu/kanade/domain/source/interactor/TrustExtension.kt @@ -17,7 +17,7 @@ class TrustExtension( fun trust(pkgName: String, versionCode: Long, signatureHash: String) { preferences.trustedExtensions().getAndSet { exts -> // Remove previously trusted versions - val removed = exts.filter { it.startsWith("$pkgName:") }.toMutableSet() + val removed = exts.filterNot { it.startsWith("$pkgName:") }.toMutableSet() removed.also { it += "$pkgName:$versionCode:$signatureHash"