11 Commits

Author SHA1 Message Date
Michael Jurka
e39c9a953c Fix wallpaper cropping bugs
- take into account that image decoder might not
respect inSampleSize
- check rounded values so we don't have crop rects
that lie outside a bitmap's dimensions
- correctly set initial scale on bitmaps that are
larger than the screen size
- switch to using asynctask when setting wallpaper
dimensions
2013-12-02 15:05:44 -08:00
John Spurlock
6090995951 Remove unused imports from frameworks/base.
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-11-20 11:31:47 -05:00
Michael Jurka
eed96a0b90 Fix calculation of default wallpaper size
Bug: 11324470
2013-11-06 13:22:51 +01:00
Michael Jurka
b2552648ce Fix crashes for images that are not PNG or JPEG
Bug: 11342816

Change-Id: Ib8bbd30c1cc2d4f984af889895fb78412a1ab004
2013-11-01 13:31:14 +01:00
Michael Jurka
7b215cb922 Make wallpaper cropper more robust
- don't crash if image passed to wallpaper picker
is invalid
- close input streams correctly

Bug: 11413915
Bug: 11380658
Bug: 11362731
2013-10-30 14:54:21 +01:00
Michael Jurka
5271ea16c1 Load wallpaper images on a bg thread
Bug: 11134758
2013-10-28 14:42:48 +01:00
Michael Jurka
69784065ea Add EXIF rotation support to system wallpaper cropper
Bug: 11137824
2013-10-14 14:44:36 -07:00
Michael Jurka
33c493e653 Wallpaper cropper should inherit translucent theme
Change-Id: Icd13130d6250759c71ef016f62d10d7359cf067e
2013-10-08 12:47:22 -07:00
Michael Jurka
e72aa7f0a6 Fix crash in built-in wallpaper cropper
Also, sync to latest version of WallpaperCropActivity

Bug: 10950237
2013-10-07 17:06:23 -07:00
Michael Jurka
8b4836085b Fix default wallpaper dimensions
Bug: 10834711
2013-09-20 04:32:20 +02:00
Michael Jurka
e8d1bf7a43 Add new intent/method for cropping and setting wallpapers
Also, create a system fallback WallpaperCropper

Bug: 4225598

Change-Id: I6bc6d5a3bb3df1dc00f3db701978aa172020c568
2013-09-13 17:04:46 +02:00