From 8bbe1060e170a539ff236fb1816801137336de26 Mon Sep 17 00:00:00 2001 From: sallyyuen Date: Sat, 27 Mar 2021 13:30:44 -0700 Subject: [PATCH] Update Reduce Bright Colors QS icon Bug: 170973645 Test: Manual Change-Id: If615ec5d1079334937fb073cc6078a3089a0c473 --- .../res/drawable/ic_reduce_bright_colors.xml | 49 +++++++++++++++++++ .../qs/tiles/ReduceBrightColorsTile.java | 5 +- 2 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 packages/SystemUI/res/drawable/ic_reduce_bright_colors.xml diff --git a/packages/SystemUI/res/drawable/ic_reduce_bright_colors.xml b/packages/SystemUI/res/drawable/ic_reduce_bright_colors.xml new file mode 100644 index 0000000000000..fe4cc78df25be --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_reduce_bright_colors.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/ReduceBrightColorsTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/ReduceBrightColorsTile.java index 03a6689bc4493..44eeaf4f2dee7 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/ReduceBrightColorsTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/ReduceBrightColorsTile.java @@ -27,6 +27,7 @@ import android.widget.Switch; import com.android.internal.R; import com.android.internal.logging.MetricsLogger; +import com.android.systemui.R.drawable; import com.android.systemui.dagger.qualifiers.Background; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.plugins.ActivityStarter; @@ -45,8 +46,7 @@ import javax.inject.Named; public class ReduceBrightColorsTile extends QSTileImpl implements ReduceBrightColorsController.Listener{ - //TODO(b/170973645): get icon drawable - private final Icon mIcon = null; + private final Icon mIcon = ResourceIcon.get(drawable.ic_reduce_bright_colors); private final boolean mIsAvailable; private final ReduceBrightColorsController mReduceBrightColorsController; private boolean mIsListening; @@ -108,6 +108,7 @@ public class ReduceBrightColorsTile extends QSTileImpl state.label = mContext.getString(R.string.reduce_bright_colors_feature_name); state.expandedAccessibilityClassName = Switch.class.getName(); state.contentDescription = state.label; + state.icon = mIcon; } @Override