Workaround for small icons. Draw icon drawables at the expected icon size. (Bug 11203738)
Change-Id: If976ae8b3603e8bf42e8e857ce0b178d977b0a43
This commit is contained in:
1 parent
01c0214f72
commit
0dbd734384
5 files changed
+21
-5
No files matched your search
@@ -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