Merge "Add a util method of creating Icon with Drawable"
This commit is contained in:
committed by
Android (Google) Code Review
commit
7646786cd3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user