diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-08-02 16:41:28 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-08-02 16:41:28 -0700 |
commit | 9b9d48f28926371eab94c425b1d54150732fa08f (patch) | |
tree | 7370033922cd195b6805fcfea2738042851897d9 /src/com/android/launcher2/Utilities.java | |
parent | eb5362e9326f6f2096cbd79adfb75f46c82bf4f0 (diff) | |
download | android_packages_apps_Trebuchet-9b9d48f28926371eab94c425b1d54150732fa08f.tar.gz android_packages_apps_Trebuchet-9b9d48f28926371eab94c425b1d54150732fa08f.tar.bz2 android_packages_apps_Trebuchet-9b9d48f28926371eab94c425b1d54150732fa08f.zip |
Clear the bitmap associated with canvases.
Change-Id: Ic100a51960f8c0e7d8b3a107b64d23c7d70e6da9
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; } |