mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-05-03 15:26:27 +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()
|
coreContext.updateFriendListsSubscriptionDependingOnDefaultAccount()
|
||||||
|
|
||||||
if (defaultAccountRegistrationFailed && account.state != RegistrationState.Failed) {
|
removeAlert(NON_DEFAULT_ACCOUNT_NOT_CONNECTED)
|
||||||
Log.i(
|
// Refresh REGISTER to re-compute alerts regarding accounts registration state
|
||||||
"$TAG Newly set default account isn't in failed registration state, clearing alert"
|
core.refreshRegisters()
|
||||||
)
|
|
||||||
defaultAccountRegistrationFailed = false
|
|
||||||
defaultAccountRegistrationErrorEvent.postValue(Event(false))
|
|
||||||
|
|
||||||
// Refresh REGISTER to re-compute alerts regarding accounts registration state
|
|
||||||
core.refreshRegisters()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
removeAlert(NON_DEFAULT_ACCOUNT_NOTIFICATIONS)
|
removeAlert(NON_DEFAULT_ACCOUNT_NOTIFICATIONS)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue