summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaiyiz <kaiyiz@codeaurora.org>2013-09-06 14:08:04 +0800
committercretin45 <cretin45@gmail.com>2014-12-15 14:48:17 -0800
commit60be86381885dd7261bb9cc8389a716baa9ae727 (patch)
tree9f5337bc46d73e2fe11a49480b6b087277affdd5
parent7cdee29768006b3b14a7ab29bc677dbb60f1ab4f (diff)
downloadandroid_packages_apps_Gallery2-60be86381885dd7261bb9cc8389a716baa9ae727.tar.gz
android_packages_apps_Gallery2-60be86381885dd7261bb9cc8389a716baa9ae727.tar.bz2
android_packages_apps_Gallery2-60be86381885dd7261bb9cc8389a716baa9ae727.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
-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 3a7829681..387803740 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;