From feec2ab2f0fac83b5ac58fd6e5a5c94b06c4ec36 Mon Sep 17 00:00:00 2001 From: Evan Laird Date: Wed, 2 May 2018 12:47:26 -0400 Subject: [PATCH] Fix DemoMode icon spacing - Use the same margin on the left of Wi-Fi (2.5dp) - DemoMode uses the padding of the view it's replacing, and WRAP_CONTENT for the width of its children - Fix DemoMode etc dot color - Don't constrain number of icons if DemoMode is replacing an unconstrained container Test: visual; adb shell settings put global sysui_demo_allowed 1 && \ adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 0900 && \ adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show -e level 4 && \ adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype none -e level 4 && \ adb shell am broadcast -a com.android.systemui.demo -e command status -e bluetooth disconnected && \ adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 100 -e plugged false Change-Id: I1d1389f9c6d6cb7d6078af5bbe4bc21e42771560 Fixes: 79094455 --- .../SystemUI/res/layout/status_bar_wifi_group.xml | 2 +- .../systemui/statusbar/phone/DemoStatusIcons.java | 14 ++++++++++++-- .../statusbar/phone/StatusIconContainer.java | 12 ++++++++---- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/res/layout/status_bar_wifi_group.xml b/packages/SystemUI/res/layout/status_bar_wifi_group.xml index 482f780284976..c419b907ab176 100644 --- a/packages/SystemUI/res/layout/status_bar_wifi_group.xml +++ b/packages/SystemUI/res/layout/status_bar_wifi_group.xml @@ -28,8 +28,8 @@ android:id="@+id/wifi_group" android:layout_width="wrap_content" android:layout_height="match_parent" - android:paddingStart="2dp" android:gravity="center_vertical" + android:layout_marginStart="2.5dp" >