Workaround for small icons. Draw icon drawables at the expected icon size. (Bug 11203738)
Change-Id: If976ae8b3603e8bf42e8e857ce0b178d977b0a43
This commit is contained in:
@@ -69,7 +69,8 @@ public class PagedViewIcon extends TextView {
|
||||
PagedViewIcon.PressedCallback cb) {
|
||||
mIcon = info.iconBitmap;
|
||||
mPressedCallback = cb;
|
||||
setCompoundDrawablesWithIntrinsicBounds(null, new FastBitmapDrawable(mIcon), null, null);
|
||||
setCompoundDrawablesWithIntrinsicBounds(null, Utilities.createIconDrawable(mIcon),
|
||||
null, null);
|
||||
setText(info.title);
|
||||
setTag(info);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user