diff options
author | Owen Lin <owenlin@google.com> | 2011-09-13 20:48:13 +0800 |
---|---|---|
committer | Wei Huang <weih@google.com> | 2011-09-19 16:22:44 -0700 |
commit | 5da31f8fd85d7c1e33133473bd1fbc5e3a240f2d (patch) | |
tree | 3690848c45031b1417fa5325ec94c0f879dbd850 /res/xml | |
parent | d2ee3f2ac4bf9faed16b8007efe8daf6ef4edcac (diff) | |
download | android_packages_apps_Gallery2-5da31f8fd85d7c1e33133473bd1fbc5e3a240f2d.tar.gz android_packages_apps_Gallery2-5da31f8fd85d7c1e33133473bd1fbc5e3a240f2d.tar.bz2 android_packages_apps_Gallery2-5da31f8fd85d7c1e33133473bd1fbc5e3a240f2d.zip |
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: Ia8227d8e5368471fe7af94bf164d67017aa321fa
fix: 5273271
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/widget_info.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/xml/widget_info.xml b/res/xml/widget_info.xml index e03124c2d..4aa460f8d 100644 --- a/res/xml/widget_info.xml +++ b/res/xml/widget_info.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" - android:minWidth="180dp" - android:minHeight="180dp" + android:minWidth="@dimen/appwidget_width" + android:minHeight="@dimen/appwidget_height" android:updatePeriodMillis="86400000" android:previewImage="@drawable/preview" android:initialLayout="@layout/appwidget_main" |