From 881df4ad9ac18a68bef1d0363ed5ba1043392086 Mon Sep 17 00:00:00 2001 From: Mehdi Date: Sat, 21 Aug 2021 01:21:06 +0430 Subject: [PATCH] Fix misdisplaying mobile numbers in RTL mode. --- presentation/src/main/res/layout/blocked_list_item.xml | 3 ++- presentation/src/main/res/layout/blocked_number_list_item.xml | 3 ++- presentation/src/main/res/layout/chip_input_list_item.xml | 3 ++- presentation/src/main/res/layout/compose_activity.xml | 3 ++- presentation/src/main/res/layout/contact_chip.xml | 3 ++- presentation/src/main/res/layout/contact_chip_detailed.xml | 3 ++- presentation/src/main/res/layout/contact_number_list_item.xml | 3 ++- presentation/src/main/res/layout/contacts_activity.xml | 3 ++- .../src/main/res/layout/conversation_info_controller.xml | 3 ++- presentation/src/main/res/layout/conversation_list_item.xml | 3 ++- 10 files changed, 20 insertions(+), 10 deletions(-) diff --git a/presentation/src/main/res/layout/blocked_list_item.xml b/presentation/src/main/res/layout/blocked_list_item.xml index a70b945eb..b53a0cfc7 100644 --- a/presentation/src/main/res/layout/blocked_list_item.xml +++ b/presentation/src/main/res/layout/blocked_list_item.xml @@ -51,7 +51,8 @@ app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_chainStyle="packed" app:textSize="primary" - tools:text="@tools:sample/full_names" /> + tools:text="@tools:sample/full_names" + android:textDirection="ltr" /> + tools:text="(123) 456-7890" + android:textDirection="ltr" /> \ No newline at end of file + app:textSize="primary" + android:textDirection="ltr" /> \ No newline at end of file diff --git a/presentation/src/main/res/layout/compose_activity.xml b/presentation/src/main/res/layout/compose_activity.xml index 19900e0ad..b6805b879 100644 --- a/presentation/src/main/res/layout/compose_activity.xml +++ b/presentation/src/main/res/layout/compose_activity.xml @@ -327,7 +327,8 @@ android:id="@+id/toolbarTitle" style="@style/ToolbarText" android:layout_height="wrap_content" - tools:text="Moez Bhatti" /> + tools:text="Moez Bhatti" + android:textDirection="ltr" /> + tools:text="Moez Bhatti" + android:textDirection="ltr" /> diff --git a/presentation/src/main/res/layout/contact_chip_detailed.xml b/presentation/src/main/res/layout/contact_chip_detailed.xml index 786e160fd..fa4c08f34 100755 --- a/presentation/src/main/res/layout/contact_chip_detailed.xml +++ b/presentation/src/main/res/layout/contact_chip_detailed.xml @@ -72,7 +72,8 @@ app:layout_constraintTop_toBottomOf="@id/name" app:textSize="secondary" tools:text="(123) 456-7890" - tools:textColor="@color/textTertiaryDark" /> + tools:textColor="@color/textTertiaryDark" + android:textDirection="ltr" /> + tools:text="(123) 456-7890" + android:textDirection="ltr" /> \ No newline at end of file diff --git a/presentation/src/main/res/layout/contacts_activity.xml b/presentation/src/main/res/layout/contacts_activity.xml index 3ded424f1..1c21ded70 100644 --- a/presentation/src/main/res/layout/contacts_activity.xml +++ b/presentation/src/main/res/layout/contacts_activity.xml @@ -40,7 +40,8 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/toolbar" - tools:listitem="@layout/contact_list_item" /> + tools:listitem="@layout/contact_list_item" + android:textDirection="ltr" /> + android:paddingBottom="8dp" + android:textDirection="ltr" /> diff --git a/presentation/src/main/res/layout/conversation_list_item.xml b/presentation/src/main/res/layout/conversation_list_item.xml index 70e1a2526..cc7f94819 100644 --- a/presentation/src/main/res/layout/conversation_list_item.xml +++ b/presentation/src/main/res/layout/conversation_list_item.xml @@ -56,7 +56,8 @@ app:layout_constraintStart_toEndOf="@id/avatars" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_chainStyle="packed" - tools:text="@tools:sample/full_names" /> + tools:text="@tools:sample/full_names" + android:textDirection="ltr" />