diff options
Diffstat (limited to 'src/com/android/photos/data/GalleryBitmapPool.java')
-rw-r--r-- | src/com/android/photos/data/GalleryBitmapPool.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/photos/data/GalleryBitmapPool.java b/src/com/android/photos/data/GalleryBitmapPool.java index 4c3279f73..a5a17ede2 100644 --- a/src/com/android/photos/data/GalleryBitmapPool.java +++ b/src/com/android/photos/data/GalleryBitmapPool.java @@ -106,7 +106,7 @@ public class GalleryBitmapPool { } public boolean put(Bitmap b) { - if (b == null) { + if (b == null || b.getConfig() != Bitmap.Config.ARGB_8888) { return false; } SparseArrayBitmapPool pool = getPoolForDimensions(b.getWidth(), b.getHeight()); |