am dee6975a: am 8a196351: Fixing issue where FastBitmapDrawable is not scaling the drawing into the correct bounds. (Bug 9075810)
* commit 'dee6975aaab2eeea21aa02bb4fc7f844e016048c':
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