Merge "Add a util method of creating Icon with Drawable"

This commit is contained in:
TreeHugger Robot
2019-02-19 12:25:17 +00:00
committed by Android (Google) Code Review
7 changed files with 67 additions and 43 deletions

View File

@@ -214,7 +214,7 @@ public class BluetoothDevicesSlice implements CustomSliceable {
.getBtClassDrawableWithDescription(mContext, device);
if (pair.first != null) {
return IconCompat.createWithBitmap(Utils.drawableToBitmap(pair.first));
return Utils.createIconWithDrawable(pair.first);
} else {
return IconCompat.createWithResource(mContext,
com.android.internal.R.drawable.ic_settings_bluetooth);