From a424f05ab9ea04a5633b7eaa4e7d90ed026ad1ea Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 27 May 2024 10:54:40 +0200 Subject: [PATCH] Fixed meeting participants list not showing all of them --- .../linphone/ui/main/meetings/viewmodel/MeetingViewModel.kt | 5 ++++- app/src/main/res/layout/chat_info_fragment.xml | 4 +--- app/src/main/res/layout/meeting_fragment.xml | 6 ++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/linphone/ui/main/meetings/viewmodel/MeetingViewModel.kt b/app/src/main/java/org/linphone/ui/main/meetings/viewmodel/MeetingViewModel.kt index 02ec96c92..d7eaf330e 100644 --- a/app/src/main/java/org/linphone/ui/main/meetings/viewmodel/MeetingViewModel.kt +++ b/app/src/main/java/org/linphone/ui/main/meetings/viewmodel/MeetingViewModel.kt @@ -265,7 +265,7 @@ class MeetingViewModel @UiThread constructor() : GenericViewModel() { for (info in conferenceInfo.participantInfos) { val participant = info.address val isOrganizer = organizer?.weakEqual(participant) ?: false - Log.i( + Log.d( "$TAG Conference [${conferenceInfo.subject}] ${if (isOrganizer) "organizer" else "participant"} [${participant.asStringUriOnly()}] is a [${info.role}]" ) if (isOrganizer) { @@ -279,6 +279,9 @@ class MeetingViewModel @UiThread constructor() : GenericViewModel() { speakersList.add(ParticipantModel(participant, isOrganizer)) } } + Log.i( + "$TAG Found [${speakersList.size}] participants for conference [${conferenceInfo.uri?.asStringUriOnly()}]" + ) if (allSpeaker) { Log.i("$TAG All participants have Speaker role, considering it is a meeting") diff --git a/app/src/main/res/layout/chat_info_fragment.xml b/app/src/main/res/layout/chat_info_fragment.xml index bd99f3c3f..38a0cb660 100644 --- a/app/src/main/res/layout/chat_info_fragment.xml +++ b/app/src/main/res/layout/chat_info_fragment.xml @@ -68,10 +68,8 @@ android:fillViewport="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/invisible_title" - app:layout_constraintVertical_bias="0.0"> + app:layout_constraintTop_toBottomOf="@id/invisible_title"> - - +