Commit 22936c75 authored by Boris Sazonov's avatar Boris Sazonov Committed by Commit Bot

[TouchToFill][Android] Fix TouchToFill title alignment after rotation

Replaces how the title and the subtitle in the TouchToFill bottom sheet
are aligned. Before, layout_width="match_parent" with
textAlignment="center" were used. This has caused issues with device
rotation (see bug). After this change, layout_width="wrap_content" and
layout_gravity="center_horizontal" are used.

Bug: 1012224
Change-Id: I98f7cdeab9be84eee80d2dc14cc29ae820af6b13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847285Reviewed-by: default avatarFriedrich [CET] <fhorschig@chromium.org>
Commit-Queue: Boris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703769}
parent 242c2e1c
......@@ -31,17 +31,17 @@
app:srcCompat="@drawable/touch_to_fill_header_image" />
<org.chromium.ui.widget.TextViewWithLeading
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAlignment="center"
android:layout_gravity="center_horizontal"
android:text="@string/touch_to_fill_sheet_title"
android:textAppearance="@style/TextAppearance.BlackHeadline" />
<org.chromium.ui.widget.TextViewWithLeading
android:id="@+id/touch_to_fill_sheet_subtitle"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAlignment="center"
android:layout_gravity="center_horizontal"
android:textAppearance="@style/TextAppearance.BlackHint1" />
<ListView
......
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