mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed 'paused' label briefly visible at top of conference call UI when joining
This commit is contained in:
parent
bb4e9fdeb5
commit
42cf8fd89e
1 changed files with 12 additions and 3 deletions
|
|
@ -40,7 +40,7 @@ import org.linphone.ui.call.conference.view.GridBoxLayout
|
|||
import org.linphone.utils.AppUtils
|
||||
import org.linphone.utils.Event
|
||||
|
||||
class ConferenceViewModel : GenericViewModel() {
|
||||
class ConferenceViewModel @UiThread constructor() : GenericViewModel() {
|
||||
companion object {
|
||||
private const val TAG = "[Conference ViewModel]"
|
||||
|
||||
|
|
@ -233,6 +233,10 @@ class ConferenceViewModel : GenericViewModel() {
|
|||
}
|
||||
}
|
||||
|
||||
init {
|
||||
isPaused.value = false
|
||||
}
|
||||
|
||||
@WorkerThread
|
||||
fun destroy() {
|
||||
isCurrentCallInConference.postValue(false)
|
||||
|
|
@ -254,8 +258,13 @@ class ConferenceViewModel : GenericViewModel() {
|
|||
conference.addListener(conferenceListener)
|
||||
|
||||
val isIn = conference.isIn
|
||||
isPaused.postValue(!isIn)
|
||||
Log.i("$TAG We ${if (isIn) "are" else "aren't"} in the conference right now")
|
||||
val state = conf.state
|
||||
if (state != Conference.State.CreationPending) {
|
||||
isPaused.postValue(!isIn)
|
||||
}
|
||||
Log.i(
|
||||
"$TAG We ${if (isIn) "are" else "aren't"} in the conference right now, current state is [$state]"
|
||||
)
|
||||
|
||||
val screenSharing = conference.screenSharingParticipant != null
|
||||
isScreenSharing.postValue(screenSharing)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue