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