Commit 8ab5046b authored by newt's avatar newt Committed by Commit bot

Fix padding in home page settings.

The "on"/"off" text and the switch were both too close to the edge of
the screen on pre-L devices. The bug arose because the LinearLayout had
conflicting padding attributes: it defined "padding" inline, and used a
style which defined "paddingStart" and "paddingEnd". The latter values
were overriding the inline "padding" value.

Review URL: https://codereview.chromium.org/970603003

Cr-Commit-Position: refs/heads/master@{#319011}
parent fb9b01d2
...@@ -20,7 +20,10 @@ ...@@ -20,7 +20,10 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal" android:orientation="horizontal"
android:padding="16dp" android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="16dp"
android:paddingBottom="16dp"
style="@style/PreferenceLayout" > style="@style/PreferenceLayout" >
<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