mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Prevent connexion in progress when going back to waiting room
This commit is contained in:
parent
296a324ba3
commit
f1b23337e0
2 changed files with 3 additions and 1 deletions
|
|
@ -111,10 +111,12 @@ class MeetingWaitingRoomViewModel
|
|||
when (state) {
|
||||
Call.State.End -> {
|
||||
Log.i("$TAG Call has ended, leaving waiting room fragment")
|
||||
joining.postValue(false)
|
||||
leaveWaitingRoomEvent.postValue(Event(true))
|
||||
}
|
||||
Call.State.Error -> {
|
||||
Log.w("$TAG Call has failed, leaving waiting room fragment")
|
||||
joining.postValue(false)
|
||||
leaveWaitingRoomEvent.postValue(Event(true))
|
||||
}
|
||||
else -> {}
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:background="@color/gray_900"
|
||||
android:visibility="@{viewModel.joining ? View.VISIBLE : View.GONE}"
|
||||
android:visibility="@{viewModel.joining ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:layout_constraintTop_toBottomOf="@id/back"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue