Commit cda4d77a authored by Friedrich Horschig's avatar Friedrich Horschig Committed by Commit Bot

[PwdCheckAndroid] Allow RTL alignment for LTR origins.

By resizing the fields for origin and username, they are properly
aligned if the layout direction changes.

Screenshots in the linked bug.

Bug: 1122517, 1092444
Change-Id: I4aecec81ad84bd71072eacbd87ca63bc2bab3cb1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2377815Reviewed-by: default avatarIoana Pandele <ioanap@chromium.org>
Commit-Queue: Friedrich [CET] <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803429}
parent 22fedd9e
...@@ -35,14 +35,14 @@ ...@@ -35,14 +35,14 @@
<TextView <TextView
android:id="@+id/credential_origin" android:id="@+id/credential_origin"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layoutDirection="ltr" android:layoutDirection="ltr"
android:textAppearance="@style/TextAppearance.TextLarge.Primary" /> android:textAppearance="@style/TextAppearance.TextLarge.Primary" />
<TextView <TextView
android:id="@+id/compromised_username" android:id="@+id/compromised_username"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary" /> android:textAppearance="@style/TextAppearance.TextMedium.Secondary" />
<TextView <TextView
......
...@@ -35,13 +35,14 @@ ...@@ -35,13 +35,14 @@
<TextView <TextView
android:id="@+id/credential_origin" android:id="@+id/credential_origin"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layoutDirection="ltr"
android:textAppearance="@style/TextAppearance.TextLarge.Primary" /> android:textAppearance="@style/TextAppearance.TextLarge.Primary" />
<TextView <TextView
android:id="@+id/compromised_username" android:id="@+id/compromised_username"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:textAppearance="@style/TextAppearance.TextMedium.Secondary" /> android:textAppearance="@style/TextAppearance.TextMedium.Secondary" />
<TextView <TextView
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment