This is so, launcher can map it to existing resource tokens enabling
launchers to easily override resources.
Within picker module, we define a default implementation using material
tokens that can be used as reference for which colors are ideal for
specific picker tokens.
Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: I9c3a6118942114d5a8481f05a6710d8161d56bd7
- adds the logic to toggle add button on tapping preview / details
- adds logic to handle add button click
- adds logic to start drag and drop on long press.
The compose's drag and drop handles drag and drop itself, but in this case we need custom interaction to be able to support calling back listeners / setting result for activity etc. So, we use custom logic with android view.
Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: Ie13c919248f8bdd20f90c4eb4a0bec266aedde27
This adds the search screen and view model logic.
It uses the same composable structure as the landing screen.
Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: Ic83090be21b31a4f1b416284f78d5a05d5cd2cdc
This CL includes following:
* ViewModel base class for reuse across widget picker.
* Landing screens implemented in both compact and expanded mode.
* Test cases for the same.
Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: Ia4a7f0b972ca0d3863f041aac276cb3c5096a258
- This is responsible for looking up data from repositories and applying
business rules using use cases.
Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: I767186a38b3105085637c75d9aec8ca21788f49f
These will be used by the interactor classes to provide data to the
ui layer.
- FilterWidgetsForHostUseCase filters widgets that don't match the
constraints specified by the host
- GroupWidgetAppsByProfileUseCase groups widgets based on their user
profile; and ensures that if work profile is paused, its widgets are
treated as empty list.
Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: I676715daf5e400ba12acf50f867a5aa352d7bdf1
- I think the previews / featured / search all could be part of widgets
repository. Internally, it will use separate datasource to prepare the
respective data - but as a repository, they all are probably just
a widgets repo.
- Includes minor changes to data types as well to prepare for upcoming
changes.
Bug: 408283627
Flag: EXEMPT independent module
Test: Not applicable - interface changes
Change-Id: I765c11318a655603becdf2cab081f0fcf777da1a
This cl contains just the image previews, the remote view ones in
follow up
Bug: 408283627
Flag: EXEMPT independent module
Test: See grid screenshot test
Change-Id: Icf5e7eb98f6714b4a2954dcb9fcf75c0249a4d35
This would be replaced with dependency on icon library (whenever that's
available).
Bug: 408283627
Flag: EXEMPT independent module
Test: will be part of larger screenshot test
Change-Id: Ifeff459fd679308a8f8a33d51f99db19898eedd5
Bug: 408283627
Flag: EXEMPT independent module
Test: See demo; will be part of larger screenshot test
Change-Id: I10ebc3982b9c64b4b475a3d2201bf1afb1ad654a