Updates the relevant references to read from the appropriate widget info
object.
Bug: 370950552
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: Open picker for home screen and lockscreen hosts
Change-Id: I1b2a543b69686d859775618a406901591a32f555
- Shows an error message when there are no widgets to show.
- Also adds a spacer item for edge padding to offset floating toolbar.
Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: Unit tests
Change-Id: I30f8245c60be0cbaafc287efca8384eee863e7ca
Adds test tags intended to be used from UI automator tests.
Bug: 408283627
Flag: EXEMPT independent module
Test: Test changes
Change-Id: I06b58ebb6f48906fd6e1dd1be74b011d226ce797
- Switched the tests that probe old picker to use disabled flag
- Added some more tests for new code
- A test to use the tap to add listener to add widget to homescreen
- Updated compose unit test to cover for expanding an item
Bug: 408283627
Flag: EXEMPT independent module
Test: Test changes
Change-Id: I238896ec6e24596db93953a22bb43f6c7abbb9d1
- 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
There seems to be some flakiness with fonts; while I figure it out,
disabling the tests.
Bug: 418064758
Flag: EXEMPT test
Test: Not applicable.
Change-Id: I4ff19db8a18c76814a9af0d0589f1a2aa90d68d1
Covers entire grid area with test samples of varying sizes for testing
the grid placement logic.
Bug: 408283627
Flag: EXEMPT independent module
Test: Screenshot test
Change-Id: I5a4ab0d000e33b71de3760b729922f26445b0e8c
In case of two pane layout, the toolbar appears over the list, so, shows
a shadow.
Bug: 408283627
Flag: EXEMPT independent module
Test: Screenshot test
Change-Id: Ifd126adc7dcbd81907809c961577f958c0f9c06b