mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-15 07:39:42 +02:00
Trusting new extension shouldn't revoke other irrelevant extensions
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user