diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2013-09-06 14:08:04 +0800 |
---|---|---|
committer | Xiaojing Zhang <zhangx@codeaurora.org> | 2014-11-04 20:38:40 -0800 |
commit | 5f9b74d47d3e5374b405512628fbcbaa7bad0ab9 (patch) | |
tree | 9f5337bc46d73e2fe11a49480b6b087277affdd5 /src/com/android/gallery3d | |
parent | f3069053e718504b42bf0f49680a6138488b8e4d (diff) | |
download | android_packages_apps_Gallery2-5f9b74d47d3e5374b405512628fbcbaa7bad0ab9.tar.gz android_packages_apps_Gallery2-5f9b74d47d3e5374b405512628fbcbaa7bad0ab9.tar.bz2 android_packages_apps_Gallery2-5f9b74d47d3e5374b405512628fbcbaa7bad0ab9.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/com/android/gallery3d')
-rw-r--r-- | src/com/android/gallery3d/filtershow/crop/CropActivity.java | 2 |
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; |