mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed meetings briefly visible sometimes
This commit is contained in:
parent
9a97a45448
commit
8f1eeebd66
1 changed files with 6 additions and 4 deletions
|
|
@ -282,15 +282,18 @@ open class AbstractMainViewModel @UiThread constructor() : GenericViewModel() {
|
|||
fun updateAvailableMenus() {
|
||||
hideConversations.postValue(corePreferences.disableChat)
|
||||
|
||||
val conferencingAvailable = LinphoneUtils.isRemoteConferencingAvailable(
|
||||
coreContext.core
|
||||
)
|
||||
val hideGroupCall =
|
||||
corePreferences.disableMeetings || !LinphoneUtils.isRemoteConferencingAvailable(
|
||||
coreContext.core
|
||||
)
|
||||
coreContext.core.accountList.isEmpty() || corePreferences.disableMeetings || !conferencingAvailable
|
||||
hideMeetings.postValue(hideGroupCall)
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
private fun configure() {
|
||||
updateAvailableMenus()
|
||||
|
||||
val core = coreContext.core
|
||||
val defaultAccount = core.defaultAccount
|
||||
if (defaultAccount != null || core.accountList.isNotEmpty()) {
|
||||
|
|
@ -300,7 +303,6 @@ open class AbstractMainViewModel @UiThread constructor() : GenericViewModel() {
|
|||
|
||||
updateUnreadMessagesCount()
|
||||
updateMissedCallsCount()
|
||||
updateAvailableMenus()
|
||||
} else {
|
||||
Log.e("$TAG Accounts list no supposed to be empty!")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue