Commit Graph

21 Commits

Author SHA1 Message Date
Michael Jurka 2d13e6934f 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

Change-Id: I42be79c68b883a6e329dcc5645d7db6cd6e3eeeb
2013-11-11 17:49:42 +01:00
Michael Jurka 454db97700 Fix issues with sizing wallpapers
- properly sync size across Launcher and wallpaper
picker
- remove code that was calculating wrong default
wallpaper size

Bug: 11324470

Change-Id: Ib4e7202363c56e3cb0c09d4448a7f96eef0a0915
2013-10-31 16:38:24 +01:00
Michael Jurka 9789c42eab Fix crashes for images that are not PNG or JPEG
Bug: 11341544

Change-Id: If2339b583e9a991f053a5f95f259156e3e4e9acd
2013-10-31 10:58:28 +01:00
Michael Jurka 619a180be5 Make wallpaper picker/cropper more robust
- don't crash if image passed to wallpaper picker
is invalid
- close input streams correctly

Bug: 11413915
Bug: 11380658
Bug: 11362731

Change-Id: I973e6bdc532d24a64efd6d174e89fdac626d7ee3
2013-10-29 22:50:30 +01:00
Michael Jurka 862f7e3950 Load images on a bg thread
Bug: 11134758

Change-Id: Ie789a2fcb2024832ac104cd9cdbc3602abee85ee
2013-10-21 14:51:49 -07:00
Michael Jurka f6502c316c Don't crash if WallpaperCropActivity isn't passed a URI
Bug: 11173560
2013-10-14 14:09:43 -07:00
Michael Jurka 8713a94562 Add EXIF rotation support to wallpaper picker
Bug: 11137824

Change-Id: I64e488207ffea219fca5ee00f47b98ccb2ac86d8
2013-10-12 01:12:36 -07:00
Michael Jurka 507250cfb7 Switch to using theme for translucent nav bars 2013-10-07 17:23:55 -07:00
John Spurlock d4507eefa3 Migrate to new WM.LP.flags based translucent decor API.
Update/rename common helper class TranslucentDecor to handle both
apis so behavior is correct on old and new builds.

Bug:10674960
Change-Id: Id3b2d523026e9e4f2f71f0eab404792207c6d8c7
2013-10-06 16:08:58 -04:00
Michael Jurka fe0ace3583 Fix RTL bugs with wallpaper parallax
Bug: 10901046

Change-Id: Id4277173b0c13d25eb0507bd6fa9fa1309946510
2013-10-03 16:19:06 -07:00
Michael Jurka 7267fa5869 Make some changes for transparent system bars
-Move transparent bars from just GEL to Launcher3
-When wallpaper strip animates, render it under the nav bar
-Disable rotation of wallpaper picker on phones

Bug: 10814785
Bug: 10852650
Bug: 10852554

Change-Id: I9efeccbc4ad1933689266a5dede201ccfd34acf4
2013-10-01 11:56:43 -07:00
Michael Jurka 16205da30e Restore parallax even if Google Now isn't present
- Also fix a crash when choosing third-party wallpaper pickers

Bug: 11008122

Change-Id: Ie5923fdadc1db6facf695ec05522f5e469d6c72a
2013-09-30 18:25:52 -07:00
Michael Jurka 1e4e6ddb38 Refactoring to better support mixed wallpaper sources
Change-Id: I3b47a8f56d418c6f2e7b9fd469427c3056def8d8
2013-09-24 12:09:34 +01:00
Michael Jurka 88f33511b8 Fix default wallpaper dimensions
Bug: 10834711
2013-09-19 20:51:11 +02:00
Michael Jurka adc574ccb1 Update to using new crop intent
Also, unify WallpaperCropActivity so it's
identical to the system default version (mainly
removing Launcher dependencies)

Change-Id: I1ebc390bce23de62d76daced6f8cb44d57e4ac0c
2013-09-13 18:16:54 +02:00
Michael Jurka be2f8ddd80 Adding persistence of saved wallpaper images
Bug: 10640466
Bug: 10648660

Change-Id: I545a0419a3a6a23b75fb035d7a3be854426d13d4
2013-09-12 20:48:53 +02:00
Michael Jurka 2d8de5845b Create a separate wallpaper crop activity
Change-Id: Ifb0a7dcb5a6e9ddd4f4bbccc793d9b4db1256cf2
2013-09-05 20:37:56 +02:00
Michael Jurka eadbfc564d Move wallpapers to external activity
Also renaming Launcher's ApplicationInfo to
AppInfo since ApplicationInfo is already a 
framework class

Change-Id: Ib3e91d2ba4ace458d790a26c0ce850870fd3f146
2013-09-04 16:21:20 +02:00
Michael Jurka fe09cb7fe3 Improve wallpaper cropping
- Add support for tablets
- Add support for parallax with user-cropped images
- Improve behavior in landscape

Change-Id: I50c4bba59b03d26d595a086a9ea425894f341705
2013-08-29 18:14:29 +02:00
Michael Jurka fd471c0b4f Fix wallpaper cropping
Images were not being scaled correctly and
wallpaper dimensions weren't always being set
2013-08-26 15:54:03 +02:00
Michael Jurka 104c456776 Initial implementation of new wallpaper picker.
Change-Id: Ib4c5ac4989b4959fa62465d9cde3cac662e24949
2013-08-21 13:18:29 +02:00