mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fixed waiting room joining screen when rotating device
This commit is contained in:
parent
9ca6978b7c
commit
ebf9fa9145
3 changed files with 10 additions and 7 deletions
|
|
@ -145,8 +145,6 @@ class MeetingWaitingRoomViewModel @UiThread constructor() : ViewModel() {
|
|||
}
|
||||
|
||||
init {
|
||||
joining.value = false
|
||||
|
||||
coreContext.postOnCoreThread { core ->
|
||||
core.addListener(coreListener)
|
||||
|
||||
|
|
@ -178,10 +176,15 @@ class MeetingWaitingRoomViewModel @UiThread constructor() : ViewModel() {
|
|||
val address = Factory.instance().createAddress(uri)
|
||||
if (address != null) {
|
||||
conferenceAddress = address
|
||||
val found = core.findConferenceInformationFromUri(address)
|
||||
if (found != null) {
|
||||
val callFound = core.calls.find {
|
||||
it.remoteAddress.weakEqual(conferenceAddress)
|
||||
}
|
||||
joining.postValue(callFound != null)
|
||||
|
||||
val conferenceInfoFound = core.findConferenceInformationFromUri(address)
|
||||
if (conferenceInfoFound != null) {
|
||||
Log.i("$TAG Conference info with SIP URI [$uri] was found")
|
||||
conferenceInfo = found
|
||||
conferenceInfo = conferenceInfoFound
|
||||
configureConferenceInfo()
|
||||
configureWaitingRoom()
|
||||
conferenceInfoFoundEvent.postValue(Event(true))
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/joining_subtitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
app:layout_constraintBottom_toTopOf="@id/cancel"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/primary_button_label_style"
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/joining_subtitle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
app:layout_constraintBottom_toTopOf="@id/cancel"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/primary_button_label_style"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue