Fixing issue where FastBitmapDrawable is not scaling the drawing into the correct bounds. (Bug 9075810)

Change-Id: I3a72f51d6b3c934a5fa42a3478dcb2c363047957
This commit is contained in:
Winson Chung 2013-05-28 16:12:55 -07:00
parent 2b030fd273
commit 8a196351ef
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ class FastBitmapDrawable extends Drawable {
@Override
public void draw(Canvas canvas) {
final Rect r = getBounds();
canvas.drawBitmap(mBitmap, r.left, r.top, mPaint);
// Draw the bitmap into the bounding rect
canvas.drawBitmap(mBitmap, null, r, mPaint);
}
@Override