summaryrefslogtreecommitdiffstats
path: root/res/xml
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2011-09-13 20:48:13 +0800
committerWei Huang <weih@google.com>2011-09-19 16:22:44 -0700
commit27a7e7b36ed5a42a0983a922db4df30b8fd154af (patch)
treec01a76c0baef785decb9f713121051884be5c468 /res/xml
parent34c6eae8e431b97e386291acf059656211c736c7 (diff)
downloadandroid_packages_apps_Snap-27a7e7b36ed5a42a0983a922db4df30b8fd154af.tar.gz
android_packages_apps_Snap-27a7e7b36ed5a42a0983a922db4df30b8fd154af.tar.bz2
android_packages_apps_Snap-27a7e7b36ed5a42a0983a922db4df30b8fd154af.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.xml4
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"