Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02aee793 authored by Yanting Yang's avatar Yanting Yang
Browse files

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
parent f32823bc
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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);
    }