From 0895db1a628fc238ec62b91e4048b197e957fc14 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 18 Nov 2022 10:59:51 +0100 Subject: [PATCH] Fixed UI issue in call if at Android level the font size is increased + prevent 'null' call to be displayed sometimes --- .../activities/voip/viewmodels/CallsViewModel.kt | 2 ++ app/src/main/res/layout/voip_single_call_fragment.xml | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/linphone/activities/voip/viewmodels/CallsViewModel.kt b/app/src/main/java/org/linphone/activities/voip/viewmodels/CallsViewModel.kt index f3ec001a1..cebb81413 100644 --- a/app/src/main/java/org/linphone/activities/voip/viewmodels/CallsViewModel.kt +++ b/app/src/main/java/org/linphone/activities/voip/viewmodels/CallsViewModel.kt @@ -105,6 +105,8 @@ class CallsViewModel : ViewModel() { if (currentCall != null && currentCallData.value?.call != currentCall) { updateCurrentCallData(currentCall) } else if (currentCall == null && core.callsNb > 0) { + updateCurrentCallData(null) + } else if (currentCallData.value == null) { updateCurrentCallData(currentCall) } diff --git a/app/src/main/res/layout/voip_single_call_fragment.xml b/app/src/main/res/layout/voip_single_call_fragment.xml index f10958685..e2e9aed64 100644 --- a/app/src/main/res/layout/voip_single_call_fragment.xml +++ b/app/src/main/res/layout/voip_single_call_fragment.xml @@ -116,8 +116,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" app:barrierDirection="bottom" - app:barrierMargin="20dp" - app:constraint_referenced_ids="remote_address,remotely_recorded" /> + app:constraint_referenced_ids="remote_address,remotely_recorded,top_barrier" /> + app:layout_constraintTop_toBottomOf="@id/call_header_barrier" /> + app:layout_constraintTop_toTopOf="@id/background" /> + app:layout_constraintTop_toTopOf="@id/background" />