5da31f8fd85d7c1e33133473bd1fbc5e3a240f2d |
|
13-Sep-2011 |
Owen Lin <owenlin@google.com> |
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
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/WidgetConfigure.java
|