mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-17 21:38:29 +00:00
Remove remote provisioning URI from Core when logging out the last account to prevent possible automatic account configuration when app will be restarted
This commit is contained in:
parent
839dcea67d
commit
6d51f23e11
1 changed files with 8 additions and 0 deletions
|
|
@ -268,6 +268,14 @@ class AccountProfileViewModel
|
|||
Log.w("$TAG Removing account [$identity] and all related data (auth info, conferences, conversations, call logs)")
|
||||
core.removeAccountWithData(account)
|
||||
accountRemovedEvent.postValue(Event(true))
|
||||
|
||||
if (core.accountList.isEmpty()) {
|
||||
Log.w("$TAG No more account found in Core")
|
||||
if (!core.provisioningUri.isNullOrEmpty()) {
|
||||
Log.w("$TAG Removing remote provisioning URI")
|
||||
core.provisioningUri = null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue