summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Partner.java
Commit message (Collapse)AuthorAgeFilesLines
* Creating landscape and portrait device profiles at app initializationSunny Goyal2015-05-221-30/+0
| | | | Change-Id: Ide9d007adc36b348e19b05cdf49e87f8b02db60e
* Refactoring DeviceProfileAdam Cohen2015-05-211-27/+41
| | | | | | | | | | | | | | | | | | | | -> Pulling out the parts of device profile which can (and need to be) initialized and accessed without access to an Activity context, ie. the invariant bits. -> The invariant bits are stored in InvariantDeviceProfile which is initialized statically from LauncherAppState. -> The DeviceProfile contains the Activity context-dependent bits, and we will create one of these for each Activity instance, and this instance is accessed through the Launcher activity. -> It's possible that we can continue to refactor this such that all appropriate dimensions can be computed without an Activity context (by only specifying orientation). This would be an extension of this CL and allow us to know exactly how launcher will look in both orientations from any context. Sets the stage for some improvements around b/19514688 Change-Id: Ia7daccf14d8ca2b9cb340b8780b684769e9f1892
* Add ability for Partner customization apk to override certain DeviceProfile ↵Adam Cohen2014-09-041-0/+171
| | | | | | | | | | | params -> Workspace row / col counts -> All apps row / col counts -> Workspace icon size issue 17208277 Change-Id: I25cfafede4da783083593b9bfeff4e5ba7751d36
* Move Partner.java into the Wallpaper directory.Sameer Padala2014-05-021-84/+0
| | | | | | | WallpaperPicker depends on this and have this class in Launcher3 would cause a circular dependency in google3 Change-Id: Ia582bcb988a4f6375904660546b1bc1744d25238
* Add support for partner customization.Jeff Sharkey2014-04-221-0/+84
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