Set disabled state when getting new icon from DrawableFactory.
Change-Id: Ic9c508d24cc0e65d45f5c1f4bcbe8d5cd7fb9200
This commit is contained in:
@@ -65,7 +65,9 @@ public class DrawableFactory {
|
||||
* Returns a FastBitmapDrawable with the icon.
|
||||
*/
|
||||
public FastBitmapDrawable newIcon(ItemInfoWithIcon info) {
|
||||
return new FastBitmapDrawable(info);
|
||||
FastBitmapDrawable drawable = new FastBitmapDrawable(info);
|
||||
drawable.setIsDisabled(info.isDisabled());
|
||||
return drawable;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user