Commit Graph

32 Commits

Author SHA1 Message Date
Adam Cohen 4ae96ce92d Add ability for Partner customization apk to override certain DeviceProfile params
-> Workspace row / col counts
-> All apps row / col counts
-> Workspace icon size

issue 17208277

Change-Id: I25cfafede4da783083593b9bfeff4e5ba7751d36
2014-09-04 15:12:55 +00:00
Sunny Goyal 0af0d8422b Saving the system wallpaper thumbnail prefixed by the SDK_INT
so that it is recreated after a system update.

issue: 15670065

Change-Id: I237ef1d99676d5a0ac6ff7b4a80a7a72905ef1ed
2014-08-13 12:16:59 -07:00
Sunny Goyal 0fe505bf82 Autoinstalls loading xml
> Launcher checkes for an apk in the system image with a broadcast
receiver for action:
com.android.launcher3.action.LAUNCHER_CUSTOMIZATION
> Default layout is parsed from that apk, which can also contain
icons and string resources used in the layout config

Change-Id: I44fc9e7c3134f525f7b5db29f4e8bb56e17ce445
2014-08-12 14:13:18 -07:00
Adam Cohen f24c61295d Add partner customization option to force first run flow
Change-Id: Id50587cbb95e375b3847597f12bd8566c70dd7bc
(cherry picked from commit 923e1de9f0d7672dd18947ecde2b0da8c5768b7a)
2014-08-08 04:31:24 +00:00
Adam Cohen 8dc6e1bfa2 Fix SecurityException when exiting wallpaper picker early
issue 16155967

Change-Id: Iba1add737089b73e6e5bbfb143dce4204fa9dc7c
2014-07-24 10:48:20 -07:00
Sunny Goyal 0c625eeec2 Merge "Adding options in the partner apk to disable the default wallpaper and provide a folder containing additional wallpapers" into ub-now-master 2014-07-23 18:44:51 +00:00
Sunny Goyal e9bacd9c2b Fixing memory leak in WallpaperCropActivity
issue 15516788

Change-Id: I6feb4cb72052bc7f19e9c30957bff7dcccd5bc9d
2014-07-22 09:39:01 -07:00
Sunny Goyal cdc4dbd878 Adding options in the partner apk to disable the default wallpaper and
provide a folder containing additional wallpapers

issue: 16045459

Change-Id: Id411121ff552d0d270258a5b371d1fd756bd7884
2014-07-16 16:19:23 -07:00
Adam Cohen 56c2acc3df Add method to check if there is a partner folder
Change-Id: I6154c731edfeb2a4fc0aed94f74a556059b5d103
2014-06-12 18:04:10 -07:00
Adam Cohen c8d31ff228 Add null check for empty MediaStore cursor
issue 15397853

Change-Id: I1c28262e181a4f32e1f7a58813121db72746d6a8
2014-06-12 12:37:55 -07:00
Adam Skory 5fbdd06489 Squash unreachable catch
The compiler warning distracts me often.

Change-Id: I0192314f4ac9d8e3acb40dd10a39de297affcdac
2014-06-04 18:13:49 +01:00
Adam Cohen 9b8f51fcc8 Adding ability for partners to specify a default layout
Change-Id: Ib071faa4b41d13961c3a33b865b40a644631c08a
2014-06-02 11:06:47 -07:00
Adam Cohen ea90f83e24 Check before suggesting default wallpaper dimensions
issue 14470153

Change-Id: Id00e9cb4bd2b769818ed61de65be8c1c0119e07d
2014-05-21 17:13:40 -07:00
Sameer Padala e697a9a042 Move Partner.java into the Wallpaper directory.
WallpaperPicker depends on this and have this class in Launcher3 would cause a
circular dependency in google3

Change-Id: Ia582bcb988a4f6375904660546b1bc1744d25238
2014-05-02 15:06:35 -07:00
Jeff Sharkey 5aeef58131 Add support for partner customization.
Traditionally Launcher workspace customization is offered through
overlays at build time, but we don't have access to partner-specific
customization at build time.  To solve this, this adds a new
"partner-folder" tag which points at an XML resource provided by
an external package.

The external package XML can't depend on the binary XML attributes
defined by Launcher3, so we switch to using manual string-based
attribute lookups.  Partners can also provide extra wallpapers.

When a folder only results in a single item, promote that item into
the folder location instead of deleting completely.

Bug: 13340779
Change-Id: Ide558288bef4113565f288b700d8245055c0fee9
2014-04-22 12:28:51 -07:00
Selim Cinek 314425602a Fixed crash when setting wallpaper with built in rotation
If an image had a built-in rotation, a crash could occur,
when setting it. An example was a panorama image which had
a rotation of 90 degrees.

Change-Id: Iede8226dac3a40f08d39a69162eb388e6aba97ec
Bug: 13507421
2014-03-27 20:35:19 +01:00
Selim Cinek 7c989e90e8 Fixed wallpaper bug where wrong size was taken when cropping
When cropping, the selected area of the image was incorrectly
cropped to the size of the view instead of the size of the image

Bug: 13617446
Change-Id: I0b40711c04f3d3b5929e7bb037d6cf21d4bb5bcb
2014-03-24 14:13:20 +01:00
Selim Cinek e04e8b2a14 Fixed a crash when an image with an odd width/height was selected
Due to an internal rounding in the renderer, the calculations
for the cropping area could be slightly offset, getting out
of the image boundaries. I sanitized the rect by ensuring they
are inside the image.

Bug: 12174629
Change-Id: I5e08c83fe3e9cd48254fa6c8ba9cef77ab8a51a6
2014-03-14 18:27:23 +01:00
Selim Cinek 459875d09e Catching security exception when activity destroyed
Fixed a bug where an asynctask tried to load an image
even after the activity was destroyed leading to a
security exception since the permission could not be granted anymore.

Bug: 12760267
Change-Id: I76ee2c0ab268b0ab4bde606706046caf0e39f1e9
2014-03-05 14:56:42 +01:00
Selim Cinek 0c255a9467 Merge "Changed behaviour of the wallpaper picker." into ub-now-lunchbox 2014-03-04 09:48:32 +00:00
Selim Cinek ffed65886e Changed behaviour of the wallpaper picker.
When opening the picker, the currently chosen wallpaper is
shown in the background.
In this change also the nullpointer was fixed when deleting
the currently selected wallpaper and setting it, because we
revert to the old wallpaper in that case.
When going into the same live wallpaper than the currently
selected we are going back to home if the user sets it or
goes back now, in order for the user not to loose state.
The real fix for this will be done later when the following
bug will be fixed: b/13241760

Bug: 12063773
Bug: 13219612
Change-Id: I7c6abb25755eca99c3255278e0884d1ff4749b55
2014-03-03 18:09:06 +01:00
Christoph Studer 8657bac9b5 Merge "Guard against null default wallpaper" into ub-now-lunchbox 2014-03-03 16:00:06 +00:00
Christoph Studer 7084c606eb Guard against null default wallpaper
Deal with WallpaperManager.getBuiltInDrawable() returning null.

Bug: 13109487
Change-Id: Ib5665a0eb947e9784cdcd0e8dfab1a01b4deca82
2014-03-03 15:35:25 +01:00
Selim Cinek 3aa28319ce Changed inconsistency when selecting default wallpaper, where it did not go back to home.
Bug: 13219313
Change-Id: I4961c6724a1550dbae126f97e45dc166cbe9a565
2014-02-28 18:03:15 +01:00
Selim Cinek c13e0a5cf1 Fixed visibility issue of save button in case the url loading failed
Bug: 12953091
Change-Id: Idc640532e2c2c6143d49d330bd541682eca64ac5
2014-02-25 14:23:57 +01:00
Michael Jurka b1f50d70e9 Catch exceptions if Exif is malformed
Bug: 11650650

Change-Id: Iee8f1675850c692fe54dc619f3e969ba180e4206
2014-01-23 15:26:50 +01:00
Michael Jurka 849aff7553 Disable Set Wallpaper button while loading image
Bug: 12472111

Change-Id: I2a0cba47f31af2416b0dd062929f277fcbf80481
2014-01-17 13:30:11 +01:00
Jorim Jaggi 1b921efc84 Keep selected wallpaper on configuration change.
Keeps the currently selected wallpaper when a configuration (for example,
device rotation) occurs. This change also effects the logic when the thumbnail
gets displayed after loading the image from an external URI, as this must be
now handled independently of which wallpaper is selected.

Bug: 11007874
Change-Id: Id676c378aec38d0b21e5d9150846f33aff415cad
2014-01-14 16:05:53 -08:00
Michael Jurka 4808aa6b42 Add ability to center the crop (disabled) 2014-01-14 13:50:53 +01:00
Michael Jurka 8b51b17320 Move saved wallpaper images from cache directory to data directory
Bug: 12028275

Change-Id: Ia8fdd0ea50a4dad34e560287c50ae3fcc6d09cf9
2014-01-09 14:34:19 +01:00
Michael Jurka 34c2e6cf7a Clean up imports 2013-12-13 16:20:53 +01:00
Michael Jurka 7ad868b86e Create separate project for Wallpaper Picker
Change-Id: Id9e855780b9fb68c63eb6e9f6c19bcbce28a6fd5
2013-12-13 12:50:32 +01:00