am 8a196351: Fixing issue where FastBitmapDrawable is not scaling the drawing into the correct bounds. (Bug 9075810)
* commit '8a196351ef7e100857e6c6d5b344d1d780584887':
Fixing issue where FastBitmapDrawable is not scaling the drawing into the correct bounds. (Bug 9075810)
diff --git a/src/com/android/launcher2/FastBitmapDrawable.java b/src/com/android/launcher2/FastBitmapDrawable.java
index d317d33..3c39d27 100644
--- a/src/com/android/launcher2/FastBitmapDrawable.java
+++ b/src/com/android/launcher2/FastBitmapDrawable.java
@@ -45,7 +45,8 @@
@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