summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-10-08 19:42:54 -0700
committernicolasroard <nicolasroard@google.com>2013-10-08 19:43:58 -0700
commit4d385a0aebbf9a6a319c3baf28fb95e808746559 (patch)
tree670e0009c726cb24442749ff1e9e672f2324e42c
parenta164496b6e2239d0bda9de027f10587687067135 (diff)
downloadandroid_packages_apps_Gallery2-4d385a0aebbf9a6a319c3baf28fb95e808746559.tar.gz
android_packages_apps_Gallery2-4d385a0aebbf9a6a319c3baf28fb95e808746559.tar.bz2
android_packages_apps_Gallery2-4d385a0aebbf9a6a319c3baf28fb95e808746559.zip
Add missing flag for bounds decode
bug:11140621 Change-Id: I08af1a6dd9527a03b21d7ab0c3cff776f37201ac
-rw-r--r--src/com/android/gallery3d/filtershow/cache/ImageLoader.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/cache/ImageLoader.java b/src/com/android/gallery3d/filtershow/cache/ImageLoader.java
index 3f9df23b6..69edd6051 100644
--- a/src/com/android/gallery3d/filtershow/cache/ImageLoader.java
+++ b/src/com/android/gallery3d/filtershow/cache/ImageLoader.java
@@ -284,6 +284,7 @@ public final class ImageLoader {
*/
public static Rect loadBitmapBounds(Context context, Uri uri) {
BitmapFactory.Options o = new BitmapFactory.Options();
+ o.inJustDecodeBounds = true;
loadBitmap(context, uri, o);
return new Rect(0, 0, o.outWidth, o.outHeight);
}