OSDN Git Service

Add support for partner customization.
authorJeff Sharkey <jsharkey@android.com>
Mon, 14 Apr 2014 20:26:42 +0000 (13:26 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 22 Apr 2014 19:28:51 +0000 (12:28 -0700)
commit5aeef58131e1c330d1d9c1dfcacf2e6eea6ced4b
treeb19471e6924d0cd3424fb5a8546e0212d1b49ae5
parent76ac344cb61a74267c04249c9e9feec41a82c504
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
WallpaperPicker/src/com/android/launcher3/WallpaperPickerActivity.java
src/com/android/launcher3/LauncherProvider.java
src/com/android/launcher3/Partner.java [new file with mode: 0644]