Add a util method of creating Icon with Drawable
- Add a util method to help create Icon with Drawable so that users don't need to handle bitmaps - Add support for creating with ColorDrawable Test: robotest Fixes: 124407373 Change-Id: I1897256821cc804a5e599d967feb84a3bcd689a9
This commit is contained in:
@@ -90,7 +90,7 @@ public class ContextualWifiSlice extends WifiSlice {
|
||||
}
|
||||
|
||||
d.setColorFilter(new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_IN));
|
||||
return IconCompat.createWithBitmap(Utils.drawableToBitmap(d));
|
||||
return Utils.createIconWithDrawable(d);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user