From 065cdfa8c1db5149c42ad69618aedac65cdd4664 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 9 Apr 2024 10:26:31 +0200 Subject: [PATCH] Fixed video preview moving depending on remote end video being sent or not --- app/src/main/res/layout/call_active_fragment.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/call_active_fragment.xml b/app/src/main/res/layout/call_active_fragment.xml index 86ccba1a8..41a52457e 100644 --- a/app/src/main/res/layout/call_active_fragment.xml +++ b/app/src/main/res/layout/call_active_fragment.xml @@ -261,11 +261,11 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="10dp" - android:layout_marginBottom="20dp" + android:layout_marginBottom="@{viewModel.fullScreenMode || viewModel.pipMode || viewModel.halfOpenedFolded ? @dimen/zero : @dimen/call_main_actions_menu_margin, default=@dimen/call_main_actions_menu_margin}" android:visibility="@{viewModel.isSendingVideo && !(viewModel.isPaused || viewModel.isPausedByRemote) ? View.VISIBLE : View.GONE}" app:alignTopRight="true" app:displayMode="black_bars" - app:layout_constraintBottom_toBottomOf="@id/remote_video_surface" + app:layout_constraintBottom_toBottomOf="@id/hinge_bottom" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHeight_max="200dp" app:layout_constraintWidth_max="200dp" />