Fixed BiDi layout issue in screen "Add FDN"
The screen "Add fixed dialing number" contains two EditBoxes: "name" and
"number". These EditBoxes behave incorrectly when using a BiDi language.
The aligment in these EditBoxes should follow the layout instead of the
text direction. This is solved by setting the textAlignment to
viewStart.
Test: manual - Checked that "name" and "number" Editbox behaves
correctly when using BiDi language.
Bug: 68495012
Change-Id: I2af2ef486ba0fd2ec6806c033c4c787a327f3543
diff --git a/res/layout/edit_fdn_contact_screen.xml b/res/layout/edit_fdn_contact_screen.xml
index 24e0c6b..c7ba0d4 100644
--- a/res/layout/edit_fdn_contact_screen.xml
+++ b/res/layout/edit_fdn_contact_screen.xml
@@ -31,7 +31,8 @@
android:singleLine="true"
android:scrollHorizontally="true"
android:autoText="false"
- android:capitalize="words" />
+ android:capitalize="words"
+ android:textAlignment="viewStart" />
<EditText android:id="@+id/fdn_number"
android:hint="@string/number"
@@ -42,7 +43,8 @@
android:singleLine="true"
android:scrollHorizontally="true"
android:autoText="false"
- android:capitalize="none" />
+ android:capitalize="none"
+ android:textAlignment="viewStart" />
<Button android:id="@+id/button"
android:layout_width="wrap_content"