summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/model
Commit message (Collapse)AuthorAgeFilesLines
* Reimplement CM Settings Overview Panel Part 4Yvonne Wong2015-12-081-1/+14
| | | | | | | - Enable protected apps and update workspace/app drawer/widgets view when protected apps change - Change reload launcher to happen after each setting toggle to reduce UI lag Change-Id: I0a4a4a077c3cb94eaccfb4e8c4213135cb99d57e
* Disabling home screen migration logicSunny Goyal2015-08-111-0/+2
| | | | Change-Id: I506948852945bfb8ebd7a95fc951880ffe9a3e17
* Creating a cache of users to avoid multiple calls to UserManagerSunny Goyal2015-08-042-22/+2
| | | | | Bug: 22805101 Change-Id: I9cd270efd74fdd34a7eb738fc25797e6f1bf2487
* Calculating widget minSpans and spans statically/independent of orientationSunny Goyal2015-08-031-4/+24
| | | | | | | | | > 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
* Merge "Enabling logging for migration task" into ub-launcher3-burnabySunny Goyal2015-07-311-1/+1
|\
| * Enabling logging for migration taskSunny Goyal2015-07-311-1/+1
| | | | | | | | | | Bug: 22353460 Change-Id: I8a9a8ea0d5523acb6d2376920535a9f4f519525d
* | Merge "Fixing minor memory leak with name comparator." into ub-launcher3-burnabyWinson Chung2015-07-312-30/+60
|\ \ | |/ |/|
| * Fixing minor memory leak with name comparator.Winson Chung2015-07-272-30/+60
| | | | | | | | | | | | | | | | | | | | | | | | - WidgetsAndShortcutNameComparator was using the actual widget and shortcut resolve infos as the key to the label cache. Neither of these classes override hashCode() and we were retrieving a new set of widgets and shortcuts whenever packages changed so we would end up creating more and more entries in the cache. This isn't a huge leak, but could lead to problems if Launcher is used for long periods without being killed. - Now, we use a ComponentKey as the key, so that we don't keep a reference to the widget/shortcut infos and also ensures that they should hash to the same labels. Change-Id: I91347ee72363adbc2b075b67dba331e35ab1fe34
* | Homescreen migration from a larger grid to a smaller grid.Sunny Goyal2015-07-311-0/+765
|/ | | | | | | | | | | | 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
* Query the title and icon for app using correct user handle.Hyunyoung Song2015-07-161-5/+10
| | | | | | | | | | > Note: when there are corp and regular user profile widget providers, it is guaranteed that regular user profile widget provider is always queried first. Thsi is guaranteed because inside AppWidgetManagerCompat.getProviders(), regular user always takes prescedence when iterating thru different providers associated to different users. Change-Id: I5e38e1fb30925ccba7e1e2925fd3e77c44a14901
* Hide spammy WidgetModel log behind a DEBUG flagHyunyoung Song2015-07-131-1/+3
| | | | Change-Id: I0119855655516d9fdc114334a974b8766aabf674
* Fixing crash when using app name comparator with empty titles.Winson Chung2015-06-251-2/+4
| | | | | Bug: 22065752 Change-Id: I4160f5e1728e46ce85fd2579889e7952de01a752
* Widgets model should respect AppFilter.Hyunyoung Song2015-06-171-6/+26
| | | | | | | | | > This pattern is already used in AllAppsList > mBgWidgetsModel variable cleanup inside LauncherModel. b/21739736 Change-Id: I03a05064ce3c3e5effb09055af9f4d4de2811c95
* Updating widget list when iconCache updatesSunny Goyal2015-06-041-1/+0
| | | | | | | | | > Fixing bug where items were not getting removed from the memcache > Fixing bug where package entries were not getting removing because of component mismatch. Bug: 21612532 Change-Id: Ie56f3272f7fb7e1a37c5ff9bfa523d814edc1a02
* Merge "Consistent scrolling experience for All apps and widget tray" into ↵Hyunyoung Song2015-06-042-3/+17
|\ | | | | | | ub-launcher3-burnaby
| * Consistent scrolling experience for All apps and widget trayHyunyoung Song2015-06-042-3/+17
| | | | | | | | | | | | b/21375339 Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0
* | Removing some synthetic method creationSunny Goyal2015-06-021-1/+2
| | | | | | | | | | | | > Make package-private and @Thunk all private methods and constructors accessed from inner classes. Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
* | Adding an asynchronous search interface for apps searchSunny Goyal2015-06-012-28/+88
|/ | | | Change-Id: Ib09df0a3d587dc60ed888ddbd0edf058e4a1cc3e
* Fix widget tray crash on screen rotation introduced byHyunyoung Song2015-05-221-9/+21
| | | | | | | | ag/694693 b/21402209 Change-Id: Idae97fca971d90f5fbba658411491147cb023c8d
* Load PackageItemInfo in background thread to prevent ANRHyunyoung Song2015-05-212-0/+183
| | | | | | | | | | | - Decoupled widget model from widget view, and placed the creation to LauncherModel. - As a result packagemanager operation, iconcache retrieval is all done inside LauncherModel on background thread b/21311085 b/21325319 Change-Id: I294698527db58b89f3da558090a367530c058776
* List work profile widgets to the end of the row of the widget tray, then sortHyunyoung Song2015-05-201-14/+19
| | | | | | b/20339403 Change-Id: I7cd824e47eba1121c9053a4064a51750bed587e7
* Unify sorting between all apps and widget trayHyunyoung Song2015-05-192-0/+168
- selected locale names are shown before latin - case independent sorting - main app > enterprise app Future possible refactoring: - Move all the *ItemInfo data structures to model package - Rename the comparator based on NOT what data structure it supports but what functionality it supports (locale? case independent? main app > enterprise app?) b/21271658 b/20339403 Change-Id: I8a776467392e21d5014e85cd3f51931a3ef89724