Commit Graph

11 Commits

Author SHA1 Message Date
Shamali Patwa
a4add54457 Merge changes from topic "no-widget-msg" into main
* changes:
  WidgetPicker: Pass no widgets available message to widgets list
  WidgetPicker: Implement no widgets available message
2025-06-06 11:52:00 -07:00
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
Charlie Anderson
a64bc6bfa4 Fix usages of BitmapInfo after converting to kotlin
Bug: 421883017
Flag: EXEMPT refactor - no new logic
Test: N/A
Change-Id: Id48c9fefef37f71f1fc51570664918bcd845e6d6
2025-06-04 17:52:51 +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
5a02a996c6 Add widget picker drag and add item listeners.
These handle those two operations for home screen when widget picker is
opened as a separate activity.

Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: Not applicable.
Test: See demo in comments
Change-Id: I37f626b57610379a8af4e7a229406ed0656806c2
2025-06-02 18:46:45 -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
Shamali Patwa
8e1ac2de44 Repository and datasource implementations backing the widget picker.
Bug: 408283627
Flag: EXEMPT independent module
Test: Existing tests
Change-Id: I0f0b68c25f416c8494f363ecc93a388570f8dfa6
2025-05-28 16:49:18 -07:00
Jordan Silva
98795242eb Add AppChip in Compose
- Add a new app chip in composable.
- Implement the app chip expansion animations and styles.

Bug: 400436593
Bug: 366172565
Fix: 366387927
Flag: EXEMPT build flag: release_enable_compose_in_launcher.
Test: AppChipTest
Test: AppChipScreenshotTest
Change-Id: I05ca14354ab7702026343c4e636538d507336f6a
2025-05-23 02:37:30 -07:00