mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fixed display issue when switching between accounts if one of them isn't registered
This commit is contained in:
parent
a9c28aa1aa
commit
d55c60cd98
1 changed files with 3 additions and 10 deletions
|
|
@ -216,16 +216,9 @@ class MainViewModel @UiThread constructor() : ViewModel() {
|
|||
)
|
||||
coreContext.updateFriendListsSubscriptionDependingOnDefaultAccount()
|
||||
|
||||
if (defaultAccountRegistrationFailed && account.state != RegistrationState.Failed) {
|
||||
Log.i(
|
||||
"$TAG Newly set default account isn't in failed registration state, clearing alert"
|
||||
)
|
||||
defaultAccountRegistrationFailed = false
|
||||
defaultAccountRegistrationErrorEvent.postValue(Event(false))
|
||||
|
||||
// Refresh REGISTER to re-compute alerts regarding accounts registration state
|
||||
core.refreshRegisters()
|
||||
}
|
||||
removeAlert(NON_DEFAULT_ACCOUNT_NOT_CONNECTED)
|
||||
// Refresh REGISTER to re-compute alerts regarding accounts registration state
|
||||
core.refreshRegisters()
|
||||
}
|
||||
|
||||
removeAlert(NON_DEFAULT_ACCOUNT_NOTIFICATIONS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue