From 02aee793f9be13a0823728609377682437c13976 Mon Sep 17 00:00:00 2001 From: Yanting Yang Date: Thu, 21 Mar 2019 18:08:01 +0800 Subject: [PATCH] Remove tint to show rainbow drawable on Bluetooth devices slice Bluetooth icon has changed to rainbow icon. These new icons will be abnormal if apply tint to them. Fixes: 129038598 Test: visual Change-Id: Ic02d226a46c36bb0b80f00b2e30d31a311e14e2f --- .../contextualcards/slices/BluetoothDevicesSlice.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/com/android/settings/homepage/contextualcards/slices/BluetoothDevicesSlice.java b/src/com/android/settings/homepage/contextualcards/slices/BluetoothDevicesSlice.java index 5c1fbdd3ac6..a760effcad5 100644 --- a/src/com/android/settings/homepage/contextualcards/slices/BluetoothDevicesSlice.java +++ b/src/com/android/settings/homepage/contextualcards/slices/BluetoothDevicesSlice.java @@ -221,14 +221,6 @@ public class BluetoothDevicesSlice implements CustomSliceable { com.android.internal.R.drawable.ic_settings_bluetooth); } - // Tint icon: Accent color for connected state; Disable color for busy state. - @ColorInt int color = Utils.getColorAccentDefaultColor(mContext); - if (device.isBusy()) { - color = Utils.getDisabled(mContext, - Utils.getColorAttrDefaultColor(mContext, android.R.attr.colorControlNormal)); - } - drawable.setColorFilter(new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_IN)); - return Utils.createIconWithDrawable(drawable); }