Fixing issue where FastBitmapDrawable is not scaling the drawing into the correct bounds. (Bug 9075810)
Change-Id: I3a72f51d6b3c934a5fa42a3478dcb2c363047957
This commit is contained in:
parent
2b030fd273
commit
8a196351ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue