Initialize FastBitmapDrawable bounds with default bitmap dimensions.

Change-Id: Ida9603e35b242a581b9401c6440875cd511725a1
This commit is contained in:
Winson Chung
2013-11-18 14:04:41 -08:00
parent 9b9fb967b2
commit 268f1c563f

View File

@@ -32,6 +32,7 @@ class FastBitmapDrawable extends Drawable {
FastBitmapDrawable(Bitmap b) {
mAlpha = 255;
mBitmap = b;
setBounds(0, 0, b.getWidth(), b.getHeight());
}
@Override