Fixing Intrinsic dimensions of FastBitmapDrawable

> This was changed initially to allow overriding icon size in case
of PreloadIconDrawable. But the implementation of PreloadIconDrawable
has changed since then and this hack is no longer required.

issue: 15545872
Change-Id: I192056179837f05c5be9e24c3e1251cf7e2a7c8c
This commit is contained in:
Sunny Goyal
2014-09-05 07:04:59 -07:00
parent 1c13ff5691
commit c424f2290e

View File

@@ -113,12 +113,12 @@ class FastBitmapDrawable extends Drawable {
@Override
public int getIntrinsicWidth() {
return getBounds().width();
return mBitmap.getWidth();
}
@Override
public int getIntrinsicHeight() {
return getBounds().height();
return mBitmap.getHeight();
}
@Override