From 0b6805a73cc7f2553df6564ecc86500c59e4a575 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 13 Mar 2025 10:08:08 +0100 Subject: [PATCH] Fixed color selector used when not needed, may cause crash on old devices --- app/src/main/res/color/main2_000.xml | 4 ---- app/src/main/res/layout/call_transfer_fragment.xml | 2 +- app/src/main/res/layout/calls_list_fragment.xml | 2 +- app/src/main/res/layout/chat_bubble_content_grid_cell.xml | 2 +- .../res/layout/chat_conversation_attachments_area_cell.xml | 2 +- 5 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 app/src/main/res/color/main2_000.xml diff --git a/app/src/main/res/color/main2_000.xml b/app/src/main/res/color/main2_000.xml deleted file mode 100644 index b7ada56e2..000000000 --- a/app/src/main/res/color/main2_000.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/app/src/main/res/layout/call_transfer_fragment.xml b/app/src/main/res/layout/call_transfer_fragment.xml index b642fa1e3..4e48c82b1 100644 --- a/app/src/main/res/layout/call_transfer_fragment.xml +++ b/app/src/main/res/layout/call_transfer_fragment.xml @@ -61,7 +61,7 @@ android:id="@+id/background" android:layout_width="0dp" android:layout_height="0dp" - android:background="@color/main2_000" + android:background="?attr/color_main2_000" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/calls_list_fragment.xml b/app/src/main/res/layout/calls_list_fragment.xml index 10a0cd0b4..88bcc5d13 100644 --- a/app/src/main/res/layout/calls_list_fragment.xml +++ b/app/src/main/res/layout/calls_list_fragment.xml @@ -65,7 +65,7 @@ android:id="@+id/background" android:layout_width="0dp" android:layout_height="0dp" - android:background="@color/main2_000" + android:background="?attr/color_main2_000" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/chat_bubble_content_grid_cell.xml b/app/src/main/res/layout/chat_bubble_content_grid_cell.xml index 0271da5af..6ab6fdfee 100644 --- a/app/src/main/res/layout/chat_bubble_content_grid_cell.xml +++ b/app/src/main/res/layout/chat_bubble_content_grid_cell.xml @@ -125,7 +125,7 @@ android:layout_height="wrap_content" android:layout_marginStart="5dp" android:text="@{model.audioVideoDuration, default=`00:42`}" - android:textColor="@color/main2_600" + android:textColor="?attr/color_main2_600" android:textSize="12sp" android:visibility="@{model.isAudio && model.audioVideoDuration.length() > 0 ? View.VISIBLE : View.GONE, default=gone}" app:layout_constraintBottom_toBottomOf="@id/left_background" diff --git a/app/src/main/res/layout/chat_conversation_attachments_area_cell.xml b/app/src/main/res/layout/chat_conversation_attachments_area_cell.xml index 85a07535d..65589c8f2 100644 --- a/app/src/main/res/layout/chat_conversation_attachments_area_cell.xml +++ b/app/src/main/res/layout/chat_conversation_attachments_area_cell.xml @@ -100,7 +100,7 @@ android:layout_height="wrap_content" android:layout_marginStart="5dp" android:text="@{model.audioVideoDuration, default=`00:42`}" - android:textColor="@color/main2_600" + android:textColor="?attr/color_main2_600" android:textSize="12sp" android:visibility="@{model.isAudio && model.audioVideoDuration.length() > 0 ? View.VISIBLE : View.GONE, default=gone}" app:layout_constraintBottom_toBottomOf="@id/file_name"