summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorSascha Haeberling <haeberling@google.com>2013-05-08 14:00:42 -0700
committerSascha Haeberling <haeberling@google.com>2013-05-08 14:00:42 -0700
commitffaf11cbaeedc02812300fd1221ad154e37f857d (patch)
treefc12cb0d4d43498412523c92a2b8115b8afc5031 /src/com
parent0815098550dd4158386d059b04de7f13fb415620 (diff)
downloadandroid_packages_apps_Snap-ffaf11cbaeedc02812300fd1221ad154e37f857d.tar.gz
android_packages_apps_Snap-ffaf11cbaeedc02812300fd1221ad154e37f857d.tar.bz2
android_packages_apps_Snap-ffaf11cbaeedc02812300fd1221ad154e37f857d.zip
Reduce max size of bitmap returned by crop dialog.
Bug: 8851336 Change-Id: Id69c46c44b22ce753900c52e34944428a38d02c6
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/gallery3d/filtershow/crop/CropActivity.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/crop/CropActivity.java b/src/com/android/gallery3d/filtershow/crop/CropActivity.java
index 0558e4a7e..fcbf7bb50 100644
--- a/src/com/android/gallery3d/filtershow/crop/CropActivity.java
+++ b/src/com/android/gallery3d/filtershow/crop/CropActivity.java
@@ -73,7 +73,14 @@ public class CropActivity extends Activity {
private static final int SELECT_PICTURE = 1; // request code for picker
private static final int DEFAULT_COMPRESS_QUALITY = 90;
- public static final int MAX_BMAP_IN_INTENT = 990000;
+ /**
+ * The maximum bitmap size we allow to be returned through the intent.
+ * Intents have a maximum of 1MB in total size. However, the Bitmap seems to
+ * have some overhead to hit so that we go way below the limit here to make
+ * sure the intent stays below 1MB.We should consider just returning a byte
+ * array instead of a Bitmap instance to avoid overhead.
+ */
+ public static final int MAX_BMAP_IN_INTENT = 750000;
// Flags
private static final int DO_SET_WALLPAPER = 1;