diff options
author | Adam Cohen <adamcohen@google.com> | 2011-08-03 12:02:47 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-08-03 12:04:22 -0700 |
commit | aaf473c2bb6329b3b09ed2e19de6aae26077050c (patch) | |
tree | aae3290856c4e98595c005efc7eb57d438bc4add /src/com/android/launcher2/Utilities.java | |
parent | 30be2cd2a4b9cedfcbb6c317449c11bb0dcc64cc (diff) | |
download | android_packages_apps_Trebuchet-aaf473c2bb6329b3b09ed2e19de6aae26077050c.tar.gz android_packages_apps_Trebuchet-aaf473c2bb6329b3b09ed2e19de6aae26077050c.tar.bz2 android_packages_apps_Trebuchet-aaf473c2bb6329b3b09ed2e19de6aae26077050c.zip |
Revert "Revert "Clear the bitmap associated with canvases.""
This reverts commit 4e012846cd09caa85b018c36810e9a64adb87640.
Diffstat (limited to 'src/com/android/launcher2/Utilities.java')
-rw-r--r-- | src/com/android/launcher2/Utilities.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Utilities.java b/src/com/android/launcher2/Utilities.java index 775833391..c63c82206 100644 --- a/src/com/android/launcher2/Utilities.java +++ b/src/com/android/launcher2/Utilities.java @@ -145,6 +145,7 @@ final class Utilities { icon.setBounds(left, top, left+width, top+height); icon.draw(canvas); icon.setBounds(sOldBounds); + canvas.setBitmap(null); return bitmap; } @@ -211,6 +212,8 @@ final class Utilities { canvas.drawBitmap(bitmap, 0.0f, 0.0f, sDisabledPaint); + canvas.setBitmap(null); + return disabled; } } @@ -327,6 +330,7 @@ final class Utilities { c.drawText(lineText, x, y, mTextPaint); } + c.setBitmap(null); return b; } |