From 27a7e7b36ed5a42a0983a922db4df30b8fd154af Mon Sep 17 00:00:00 2001 From: Owen Lin Date: Tue, 13 Sep 2011 20:48:13 +0800 Subject: 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 --- res/values-xlarge/dimensions.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'res/values-xlarge') diff --git a/res/values-xlarge/dimensions.xml b/res/values-xlarge/dimensions.xml index a0160549f..4fa398f32 100644 --- a/res/values-xlarge/dimensions.xml +++ b/res/values-xlarge/dimensions.xml @@ -15,9 +15,9 @@ --> 240dp - 200dp - 230dp - 190dp + 240dp + 220dp + 165dp 3 -- cgit v1.2.3