From e2399b4ad1cd5268767c39ec109404f88545074e Mon Sep 17 00:00:00 2001 From: Antony Sargent Date: Tue, 9 Jan 2018 13:32:28 -0800 Subject: [PATCH] Fix alignment in location requests screen In Settings->Security & location->Location, the list of apps that have recently requested location was moved up on the screen, and this made it clear that the indentation of the app name was misaligned with the title of Preference items that came after this. It turns out our custom layout for AppPreference reserved a bit more space for icons than regular Preference items. While examining the layout file for location settings I also fixed a small nit in a comment. Fixes: 71056360 Test: Visual (go to Settings->Security & location->Location, and the app names in the list should be indented at the same level as the Preference items below) Change-Id: I87e144c83cc2d13e322f65291415af037c405257 --- res/layout/preference_app.xml | 4 ++-- res/xml/location_settings.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/res/layout/preference_app.xml b/res/layout/preference_app.xml index 8cbb6f2f8da..f9dd6b24a72 100644 --- a/res/layout/preference_app.xml +++ b/res/layout/preference_app.xml @@ -29,9 +29,9 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="start|center_vertical" - android:minWidth="60dp" + android:minWidth="56dp" android:orientation="horizontal" - android:paddingEnd="12dp" + android:paddingEnd="8dp" android:paddingTop="4dp" android:paddingBottom="4dp"> - +