OSDN Git Service

(DO NOT MERGE)
authorOwen Lin <owenlin@google.com>
Tue, 13 Sep 2011 12:48:13 +0000 (20:48 +0800)
committerWei Huang <weih@google.com>
Mon, 26 Sep 2011 20:52:26 +0000 (13:52 -0700)
commit9025dba35881391c24bdaa88d1ec84d15d722f65
treed2cbf268c428282202e489c23dadc40eb8d1f252
parent1e62174ec98efedf58ce2e5a78cd8ba79dfcfde9
(DO NOT MERGE)

Add a hard limit on the size of the widget images.

There is a limit on the size of the data transfered by binder.
For now, we just add a hard limit (360 pixel) to ensure the widget's image
can be passed by binder.

Also adjust the size of widget to make it looks better.

Fix a bug in DecodeUtils which cause OOM for a image in size 12200x1920.
In that case, we should generate a screen nail of size 640x101 instead of
4066x640.

Change-Id: Ie42805d9e9e579b063fc99f5130ec433d695b8c9
fix: 5273271
gallerycommon/src/com/android/gallery3d/common/BitmapUtils.java
res/values-xlarge/dimensions.xml
res/values/dimensions.xml
res/xml/widget_info.xml
src/com/android/gallery3d/data/DecodeUtils.java
src/com/android/gallery3d/gadget/WidgetConfigure.java