summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherAppWidgetProviderInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Clean up span calculations in LauncherAppWidgetProviderInfo." into ↵Jonathan Miranda2018-11-151-10/+4
|\ | | | | | | ub-launcher3-master
| * Clean up span calculations in LauncherAppWidgetProviderInfo.Jon Miranda2017-09-201-10/+4
| | | | | | | | | | | | | | | | Using the results from DeviceProfile#getCellSize instead of manually computing the cell sizes. Bug: 63850436 Change-Id: I1de3871756a8b0e9bc8c5f9c2c1f386bb8dc31a2
* | Caching widget labels in icon cache to avoid lookup at startupSunny Goyal2018-09-281-2/+17
| | | | | | | | Change-Id: Ie026ee47905454bd70e774d422cd7fe142aec7e2
* | Revert "Revert "Adding support for hiding widgets from the widget tray and ↵Winson Chung2018-03-051-0/+8
| | | | | | | | | | | | | | | | | | | | reconfiguring widgets"" This reverts commit f502e5faecbd460ad3b8258168c5812cbaa34c4e. Reason for revert: Reverting post-build Change-Id: I09eb292dbbbe37ffaf3abc477aa2ddb5700093b8
* | Revert "Adding support for hiding widgets from the widget tray and ↵Winson Chung2018-03-051-8/+0
| | | | | | | | | | | | | | | | | | | | reconfiguring widgets" This reverts commit b29a5fa55ce3b84dd1829688db8522d5e68ffc44. Reason for revert: Temporary revert for build. Change-Id: I58045ad1ce28d398a5216ba4fbbcdba1196942ec
* | Adding support for hiding widgets from the widget tray and reconfiguring widgetsSunny Goyal2018-03-021-0/+8
|/ | | | | | | | > Removing AppInfo target > Switching between uninstall and setup based on the drag view Bug: 63931362 Change-Id: Iccd6f965fa3d61992244a365efc242122292c0ca
* Fixing custom widgets support:Sunny Goyal2017-09-131-42/+9
| | | | | | | | > Moving the definitions to xml so that it is easier to override in derivative projects > Fixing verious bind and save logic for custom widgets > Adding feature flag to easily disable custom widgets Change-Id: I0e278bc7dd415713029364060ef10842da990be9
* Removing static Context access using LauncherAppStateSunny Goyal2017-01-111-3/+2
| | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Removing static access to Context through LauncherAppStateSunny Goyal2016-12-291-18/+22
| | | | | Bug: 33032833 Change-Id: I09baaa6d79187b3096a2ab3a89d7dcaeaf9eee68
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-4/+6
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* Adding support for non-zero left insetsSunny Goyal2016-07-071-6/+6
| | | | | Bug: 29613069 Change-Id: Ifdf9bcce7ecdedc510f3be8a4dc10eb8da7c4bf1
* Removing the SearchDropTarget bar as it no longer contains the QSBSunny Goyal2016-06-061-3/+2
| | | | | | | | | | | | > Renaming it to simply DropTargetBar > Moving AppInfo to the top bar as well > The workspace pages will extend to the top edge (minus some padding). Since the QSB is no longer displayed on top of every page, there is no reason to reserve the space. > In spring-loaded mode, the workspace cell layout will scale enough to make room for the drop target bar at the top Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03
* Update the widget spans after the provider changesSunny Goyal2015-10-051-1/+1
| | | | | Bug: 24003213 Change-Id: I51ad5919a808ef10385d62a48a94589eefcb06bc
* Calculating widget minSpans and spans statically/independent of orientationSunny Goyal2015-08-031-43/+44
| | | | | | | | | > Filtering the widget list and excluding widgets which dont fit the grid > setting minSpans for the widget item when binding. Bug: 22541314 Bug: 22559137 Change-Id: Ieda48b56c95bee0c7ec71dd691af7e23e2d43db6
* Homescreen migration from a larger grid to a smaller grid.Sunny Goyal2015-07-311-0/+12
| | | | | | | | | | | | Adding support for restoring from a larger device, if the grid size difference is not more that 1. During restore add all the items in the DB, and run a one-time migration the next time launcher starts. The migration strategy is defined in ShrinkWorkspaceTask.java which involves resizing, moving and removing some items. Change-Id: I6ee411f6db5bf0152b527e16146a88c56dec2d97
* Fixing different bitmap sizes in different orientationsSunny Goyal2015-06-031-1/+2
| | | | | | | | | > Using a single bitmap icon size > Picking up appropriate density for satisfy the required icon size > Fixing some icon size assumptions during icon animations Bug: 19514688 Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
* Refactoring DeviceProfileAdam Cohen2015-05-211-20/+39
| | | | | | | | | | | | | | | | | | | | -> 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
* Various lint error fixes.Sunny Goyal2015-05-141-0/+5
| | | | | | | | > Fixing some RTL errors by specifying both marginStart and marginLeft > Moving all layout direction checks to Utilities > Explicitely adding @TargetApi before every method Change-Id: Ibe9c52b93b5a6adeadb27ace2b312770fd732ea0
* Trim all whitespace from titles and labels.Winson Chung2015-05-081-1/+1
| | | | | | Bug: 20953160 Change-Id: I1610df5e445a4139522226f68fa6439926bc70c6
* WidgetTray revamp workHyunyoung Song2015-04-081-7/+8
| | | | | | | | | | | | | | | | | | | | | | | - RecyclerView is rendering - Animation is connected - Drag and drop is now handled - UI tweaking: background, margins, more to come. - Flicker and preview not loading issue: fixed height for the horizontal scroll view. - Shortcuts are added - Widget Preview loading should support shortPress for drop - UI tweaks left: overlay of arrow when there are more items to scroll - icons are added in the section header - Sorting of widget sections and widget horizontal list - Adding all the padding constants to dimen.xml file - RecyclerView should only support one view type For items to be addressed in follow up patches OR CLs, TODO is added to the comment. b/19897708 Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
* Removing more code with API 21 dependencies.Winson Chung2015-03-241-2/+0
| | | | Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
* Supporting custom widgets provided by launcherAdam Cohen2014-12-051-0/+89
-> This change provides integration for widgets provided by the launcher package which can run arbitrary code. Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42