mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
fix clearing all permissions on login
This commit is contained in:
@@ -88,7 +88,14 @@ fun sendResult(
|
||||
val activity = context.getAppCompatActivity()
|
||||
if (packageName != null) {
|
||||
if (intentData.type == SignerType.GET_PUBLIC_KEY) {
|
||||
account.savedApps.clear()
|
||||
val keysToClear = account.savedApps.filter {
|
||||
it.key.startsWith(packageName)
|
||||
}.map {
|
||||
it.key
|
||||
}
|
||||
keysToClear.forEach {
|
||||
account.savedApps.remove(it)
|
||||
}
|
||||
}
|
||||
permissions?.filter { it.checked }?.forEach {
|
||||
val type = it.type.toUpperCase(Locale.current)
|
||||
|
||||
Reference in New Issue
Block a user