6 Commits

Author SHA1 Message Date
shamalip
077234aff5 Widget Picker: Update the launcher integration to support shortcuts
Updates drag and drop, tap to add and preview related code.

Bug: 370950552
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: Drag and drop shortcuts on home screen
Change-Id: Iccfe329296dbf4b0770628e77df5cd9b42ac9b21
2025-06-08 20:40:21 +00:00
Shamali Patwa
39bbfd9c06 Merge changes from topic "widget-p-theme" into main
* changes:
  Override the picker theme colors to map to resources in launcher
  Update picker tests to wrap content with widget picker theme.
  Replace the color / text style tokens with the newly defined picker specific tokens
  Define composition locals for configuring color / font tokens specific to widget picker.
2025-06-03 13:31:12 -07:00
Shamali Patwa
f8d3d932d3 Override the picker theme colors to map to resources in launcher
Text styles at the moment uses default tokens, but can be replaced in follow up.

Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: I91764c5aca3daa729c89882f653bb0f088248170
2025-06-03 06:00:40 -07:00
Shamali Patwa
a1c4ff596d Move host constraint builder logic to the concrete wrapper implementation.
Fix build.


Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: Ic15eb61eaa76ee9eeb1680dfe90cb89442f7d159
2025-06-02 22:34:00 -07:00
Shamali Patwa
622eb1d043 Listen to and handle drag and drop for homescreen and lockscreen widgets in widget picker activity wrapper.
Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: See demo in comments.
Change-Id: Idcc94d35ca02cb31ce191bc99b5e21f5f0a395c4
2025-06-02 18:47:08 -07:00
Shamali Patwa
e61df48651 Wire the compose based widget picker in widget picker activity
- Uses new picker behind a flag.
- Includes appropriate implementation of picker module based on whether compose is enabled.

Bug: 408283627
Flag: EXEMPT independent module
Test: Upcoming in follow up cls
Change-Id: I13e69379bc89c6d2e6909f9d11937997affc6a58
2025-05-29 13:26:00 -07:00