Commit Graph

7 Commits

Author SHA1 Message Date
shamalip
dfe273543f WidgetPicker: Implement no widgets available message
- 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: Test changes
Change-Id: I89e78a9dafc23bb02be13e6fde08971835ff18f0
2025-06-05 13:50:48 +00:00
Shamali Patwa
acc353194f Implement tap-to-add and drag and drop in the compose widget picker
- 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
2025-06-02 18:47:01 -07:00
Shamali Patwa
cd2104334c Add WidgetsInteractor that enables view layer to interact with widgets
- 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
2025-05-22 16:37:46 -07:00
Shamali P
0725160c04 Add a widget apps list and the header composable for widget picker.
Can either be selectable on click or expandable.

Bug: 408283627
Flag: EXEMPT independent module
Test: will be part of larger screenshot test
Change-Id: I991164c54d52cd64effff4987ff6c55107acb149
2025-05-13 17:13:56 -07:00
Shamali P
4f730ad128 Add details composable for details shown below widget previews in picker
Bug: 408283627
Flag: EXEMPT independent module
Test: See grid screenshot test
Change-Id: I08dfb5fcca9aaf3b630ab1c6ec56fad613127a17
2025-05-13 23:12:11 +00:00
Shamali P
901b069a1c Add a search bar for widget picker in compose
Bug: 408283627
Flag: EXEMPT independent module
Test: will be part of larger screenshot test
Change-Id: I933357a98b014f19f5ee8a9e81f02a221a3731e2
2025-05-13 17:14:51 +00:00
Shamali P
22ed792253 Move widget picker directory to be under launcher3
Bug: 408283627
Flag: EXEMPT independent module
Test: Unit tests
Change-Id: Ife6bfb3579f4a9923c6c657b1dcca33c94aada4a
2025-05-09 21:27:36 +00:00