From e8625d279fbeeedad992b45d996653fa706eeb2f Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Fri, 23 Jul 2021 14:49:22 -0400 Subject: [PATCH] [DO NOT MERGE] Update controls icon Use a new home icon in place of the default light icon Fixes: 194435266 Test: manual Change-Id: I2fd7116a34314ea68515e6e98c8e5eea9e2dcde9 --- .../SystemUI/res/drawable/controls_icon.xml | 25 +++++++++++++++++++ .../res/layout/keyguard_bottom_area.xml | 2 +- .../systemui/qs/tiles/DeviceControlsTile.kt | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 packages/SystemUI/res/drawable/controls_icon.xml diff --git a/packages/SystemUI/res/drawable/controls_icon.xml b/packages/SystemUI/res/drawable/controls_icon.xml new file mode 100644 index 0000000000000..f1814a228665e --- /dev/null +++ b/packages/SystemUI/res/drawable/controls_icon.xml @@ -0,0 +1,25 @@ + + + + + diff --git a/packages/SystemUI/res/layout/keyguard_bottom_area.xml b/packages/SystemUI/res/layout/keyguard_bottom_area.xml index 3a4985f35c35b..8dbd59d42ab7c 100644 --- a/packages/SystemUI/res/layout/keyguard_bottom_area.xml +++ b/packages/SystemUI/res/layout/keyguard_bottom_area.xml @@ -101,7 +101,7 @@ android:layout_gravity="bottom|start" android:scaleType="center" android:tint="?android:attr/textColorPrimary" - android:src="@drawable/ic_device_light" + android:src="@drawable/controls_icon" android:background="@drawable/keyguard_bottom_affordance_bg" android:layout_marginStart="@dimen/keyguard_affordance_horizontal_offset" android:layout_marginBottom="@dimen/keyguard_affordance_vertical_offset" diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/DeviceControlsTile.kt b/packages/SystemUI/src/com/android/systemui/qs/tiles/DeviceControlsTile.kt index f66b7226fbae0..bc21b2d0fba7f 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/DeviceControlsTile.kt +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/DeviceControlsTile.kt @@ -69,7 +69,7 @@ class DeviceControlsTile @Inject constructor( private var hasControlsApps = AtomicBoolean(false) - private val icon = ResourceIcon.get(R.drawable.ic_device_light) + private val icon = ResourceIcon.get(R.drawable.controls_icon) private val listingCallback = object : ControlsListingController.ControlsListingCallback { override fun onServicesUpdated(serviceInfos: List) {