summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkaiyiz <kaiyiz@codeaurora.org>2013-09-06 14:08:04 +0800
committeremancebo <emancebo@cyngn.com>2014-09-04 10:40:16 -0700
commitd6f2ded0333ecf4a0a62de361094d64c112d2160 (patch)
tree641e5fab25b68ed501dc4e68f5fde8f9805279bd /src
parent32980c28bcc9171412ce7949b1dbcde881b3827d (diff)
downloadandroid_packages_apps_Gallery2-d6f2ded0333ecf4a0a62de361094d64c112d2160.tar.gz
android_packages_apps_Gallery2-d6f2ded0333ecf4a0a62de361094d64c112d2160.tar.bz2
android_packages_apps_Gallery2-d6f2ded0333ecf4a0a62de361094d64c112d2160.zip
Gallery2: fix can not add gallery widget to home screen
When selected to add a cropped picture to home screen, the binder transaction failed because it was too large, add widget failed. We reduce the allowed maximum bitmap size in intent, to make sure that binder size will not greater than 1M. CRs-Fixed: 528927 Change-Id: Id63c8503dead66ab18531a78b0b4206d1fd30d07
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/filtershow/crop/CropActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/crop/CropActivity.java b/src/com/android/gallery3d/filtershow/crop/CropActivity.java
index 9a0167a4f..f06886b0a 100644
--- a/src/com/android/gallery3d/filtershow/crop/CropActivity.java
+++ b/src/com/android/gallery3d/filtershow/crop/CropActivity.java
@@ -83,7 +83,7 @@ public class CropActivity extends Activity {
* 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;
+ public static final int MAX_BMAP_IN_INTENT = 520000;
// Flags
private static final int DO_SET_WALLPAPER = 1;