mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 06:17:48 +01:00
Trusting new extension shouldn't revoke other irrelevant extensions
This commit is contained in:
parent
028da099dd
commit
8033a94ee2
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class TrustExtension(
|
||||||
fun trust(pkgName: String, versionCode: Long, signatureHash: String) {
|
fun trust(pkgName: String, versionCode: Long, signatureHash: String) {
|
||||||
preferences.trustedExtensions().getAndSet { exts ->
|
preferences.trustedExtensions().getAndSet { exts ->
|
||||||
// Remove previously trusted versions
|
// Remove previously trusted versions
|
||||||
val removed = exts.filter { it.startsWith("$pkgName:") }.toMutableSet()
|
val removed = exts.filterNot { it.startsWith("$pkgName:") }.toMutableSet()
|
||||||
|
|
||||||
removed.also {
|
removed.also {
|
||||||
it += "$pkgName:$versionCode:$signatureHash"
|
it += "$pkgName:$versionCode:$signatureHash"
|
||||||
|
|
Loading…
Reference in a new issue