diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-08-02 17:01:30 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-08-02 17:01:30 -0700 |
commit | 419740de685fecb03a996132508e3fa9d4932383 (patch) | |
tree | ff92af306eb53c17bc1c5e4012417e382a2b5969 | |
parent | 8d7f9594cdcfd3e88c67db195aca6accc3c10274 (diff) | |
download | packages_apps_settings-419740de685fecb03a996132508e3fa9d4932383.zip packages_apps_settings-419740de685fecb03a996132508e3fa9d4932383.tar.gz packages_apps_settings-419740de685fecb03a996132508e3fa9d4932383.tar.bz2 |
Clear bitmaps from canvses after done drawing to them.
Change-Id: I902edf771c66485269289aeeb4d64c56fe899906
-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); } } |