diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-08-02 17:05:52 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-02 17:05:52 -0700 |
commit | 2e02d207042be8ae1d744e80f3e1f1910bc366aa (patch) | |
tree | 521e37b73ff49f845041f0e371205e5cbe3e5927 /src | |
parent | f2e4c67ad895b7c3c6fe68914b7b5efa0026e3b6 (diff) | |
parent | 419740de685fecb03a996132508e3fa9d4932383 (diff) | |
download | packages_apps_settings-2e02d207042be8ae1d744e80f3e1f1910bc366aa.zip packages_apps_settings-2e02d207042be8ae1d744e80f3e1f1910bc366aa.tar.gz packages_apps_settings-2e02d207042be8ae1d744e80f3e1f1910bc366aa.tar.bz2 |
Merge "Clear bitmaps from canvses after done drawing to them."
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/ActivityPicker.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/ActivityPicker.java b/src/com/android/settings/ActivityPicker.java index d984adb..ac79cea 100644 --- a/src/com/android/settings/ActivityPicker.java +++ b/src/com/android/settings/ActivityPicker.java @@ -399,6 +399,7 @@ public class ActivityPicker extends AlertActivity implements //noinspection deprecation icon = new BitmapDrawable(thumb); ((BitmapDrawable) icon).setTargetDensity(mMetrics); + canvas.setBitmap(null); } else if (iconWidth < width && iconHeight < height) { final Bitmap.Config c = Bitmap.Config.ARGB_8888; final Bitmap thumb = Bitmap.createBitmap(mIconWidth, mIconHeight, c); @@ -413,6 +414,7 @@ public class ActivityPicker extends AlertActivity implements //noinspection deprecation icon = new BitmapDrawable(thumb); ((BitmapDrawable) icon).setTargetDensity(mMetrics); + canvas.setBitmap(null); } } |