summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-08-02 17:05:52 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-02 17:05:52 -0700
commit2e02d207042be8ae1d744e80f3e1f1910bc366aa (patch)
tree521e37b73ff49f845041f0e371205e5cbe3e5927 /src
parentf2e4c67ad895b7c3c6fe68914b7b5efa0026e3b6 (diff)
parent419740de685fecb03a996132508e3fa9d4932383 (diff)
downloadpackages_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.java2
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);
}
}