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/CachedTextView.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/CachedTextView.java')
-rw-r--r-- | src/com/android/launcher2/CachedTextView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher2/CachedTextView.java b/src/com/android/launcher2/CachedTextView.java index ac2cc3b5c..f9f68a0d4 100644 --- a/src/com/android/launcher2/CachedTextView.java +++ b/src/com/android/launcher2/CachedTextView.java @@ -130,6 +130,7 @@ public class CachedTextView extends TextView { setAlpha(prevAlpha); mIsBuildingCache = false; mCacheCanvas.restore(); + mCacheCanvas.setBitmap(null); // A hack-- we set the text to be one space (we don't make it empty just to avoid any // potential issues with text measurement, like line height, etc.) so that the text view |