From c3ad96cd1f1cec3275e64bb4b709e2607b78a3c5 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 27 Oct 2025 15:21:48 +0100 Subject: [PATCH] Fixed issue in contact layout --- app/src/main/res/layout/contact_fragment.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/contact_fragment.xml b/app/src/main/res/layout/contact_fragment.xml index 4d37caf00..3915c4d14 100644 --- a/app/src/main/res/layout/contact_fragment.xml +++ b/app/src/main/res/layout/contact_fragment.xml @@ -543,7 +543,7 @@ android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="16dp" - android:background="@{viewModel.isStored && !viewModel.isReadOnly ? @drawable/action_background_middle : @drawable/action_background_full, default=@drawable/action_background_middle}" + android:background="@{viewModel.isStored && !viewModel.isReadOnly ? (viewModel.isNative ? @drawable/action_background_bottom : @drawable/action_background_middle) : @drawable/action_background_full, default=@drawable/action_background_middle}" android:text="@string/contact_details_share" android:drawableStart="@drawable/share_network" app:layout_constraintStart_toStartOf="parent" @@ -573,7 +573,7 @@ android:layout_marginEnd="16dp" android:background="?attr/color_separator" android:importantForAccessibility="no" - android:visibility="@{viewModel.isStored && !viewModel.isReadOnly && !viewModel.isNative ? View.VISIBLE : View.GONE}" + android:visibility="@{viewModel.isStored && !viewModel.isReadOnly ? View.VISIBLE : View.GONE}" app:layout_constraintEnd_toEndOf="@id/action_edit" app:layout_constraintStart_toStartOf="@id/action_edit" app:layout_constraintTop_toBottomOf="@+id/action_edit"/> @@ -597,7 +597,7 @@ android:layout_marginEnd="16dp" android:background="?attr/color_separator" android:importantForAccessibility="no" - android:visibility="@{viewModel.isStored && !viewModel.isReadOnly ? View.VISIBLE : View.GONE}" + android:visibility="@{viewModel.isStored && !viewModel.isReadOnly && !viewModel.isNative() ? View.VISIBLE : View.GONE}" app:layout_constraintEnd_toEndOf="@id/action_share" app:layout_constraintStart_toStartOf="@id/action_share" app:layout_constraintTop_toBottomOf="@+id/action_share"/>