summaryrefslogtreecommitdiff
path: root/src/com/android/launcher3/model/BaseModelUpdateTask.java
AgeCommit message (Collapse)Author
2021-07-15Binding Taskbar directly from Launcher modelSunny Goyal
This allows taskbar to be loaded even in case of 3P Launchers and removes dependency on LauncherActivity lifecycle Bug: 187353581 Bug: 188788621 Test: Manual Change-Id: I5a0988e0697b41677d4c58f0213aef14ec0c0972
2021-03-08Widgets recommendation backendSteven Ng
Add a widgets recommendation mechanism based on AiAI app predication ranking with the following changes: 1. Only one widget is picked from one app. 2. Widgets that are already added to the workspace are excluded from the recommendation. Test: run PredicationUpdateTaskTest Bug: 179797520 Change-Id: Ia697bc6df0bae75969e68b7b3de32d57901f7461
2021-02-10Refactoring before adding a new view type in the WidgetsListAdapterSteven Ng
Changes made: 1. Model: added an abstract class for storing common information for entries shown in the full page widgets picker. 2. Introduced a ViewHolderBinder interface to split the logic of binding data to ViewHolder into separate classes. 3. Move the view holder binding of WidgetsListRow from WidgetListAdapter to its new class. 4. Move some widgets picker classes into a new picker package. Test: Auto: Run WidgetsListAdapterTest, WidgetsListRowEntryTest and WidgetsListRowViewHolderBinderTest. Manual: open the all apps widgets tray and navigate the list. Bug: 179797520 Change-Id: Iab29557842bb79156cad84d00a4c5d0db0c5aa06
2020-07-23Adding support for storing container based item list in the modelSunny Goyal
These items get updated automatically during various model tasks. Also simplifying the pinned shortcut state, by calculating the list of ppined shortcut on demand, instead of storing a refCount. Bug: 160748731 Change-Id: I3169d293552b05b4f4d6c529397fbc761887a282
2020-06-08Removing multiple system RPCs to packageMAnager and userManager from UI threadSunny Goyal
Bug: 158427348 Change-Id: Ibb1837fe932000b69cf5683bb01727fc32abca91
2020-04-09Moving model data structures to a separate fileSunny Goyal
Change-Id: I77ad7a5219e72d2e0d6c1803de2ac3ed6a65a8f7
2020-01-10Adding support for multiple Model clientsSunny Goyal
Bug: 137568159 Change-Id: Ia4db800b19cc80c695fcb9ea28e07709dfd08c6a
2019-07-25Separating apps list callback from model callback and simplifying various eventsSunny Goyal
Bug: 137568159 Change-Id: I4d8bb5c01cabe642731ebd3f57fe15bdc5a569b7
2019-04-16ShortcutInfo renamed to WorkspaceItemInfoSunny Goyal
Will get rid of ShortcutInfoCompat in a follow up cl Change-Id: I7d7d9c938635f59b216290ba28bea9d0e0721a7d
2018-10-22Deepshortcuts - only keep the per package shortcut count in memory.Zak Cohen
Change to only keep the per Activity shortcut count in memory, not the list of ids. The full shortcuts are loaded at long press time so saves memory. Bug:117239104 Test:Manual and ran instrumentation tests Change-Id: Iee974ecba2c977216be4f078396ceed22b931f5d
2018-03-05Fixing bug when model was not reflected properly on the UI.Sunny Goyal
If launcher submits a job, and then reloads before the job is executed, the correct model is not reflected on the Launcher. In that case, we simply rebind the launcher Change-Id: I380242a4de13e7b2bc326d1a076f0a974435999c
2017-10-13Converting widget panel into a floating viewSunny Goyal
> The widget panel is only inflated when needed > Using the swipe up/down interaction for widgets tray > Removing additional view wrappers from all-apps > Widget tray is preserved across activity recreation > Launcher no longer has WIDGET state, the actual code around the states will be removed in a follow-up cl Bug: 67678570 Bug: 67585158 Change-Id: Ia29a7c33ec81e6c53cc24e2906b7022b6f41755b
2017-08-17Simplifying some package matching code by using common itemInfo mathcherSunny Goyal
Change-Id: Ib98d528391e19c0de3fe11304330dfa37710548c
2017-06-08Adding support for loading workspace in the absence of Launcher.Sunny Goyal
> LoadWorkspace can be called with a LoaderResult which does not bind anything. > Synchronous bind does not look for a valid page id, and will fallback to the current pageId similar to full load flow Bug: 37616877 Change-Id: If14491dc79c5b85ae1019cc93e4e08759df3387d