Commit Graph
11 Commits
Author SHA1 Message Date
Pun Butrach ca0fe79dfd build: Avoid srcDirs deprecations
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
2026-02-02 00:48:27 +07:00
Pun Butrach 8c489023f6 build: Add Kotlin to source
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
2026-01-17 20:04:14 +07:00
Pun Butrach c7e19be594 build: Migrate removed deprecated features to slightly deprecated features
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
2026-01-16 18:18:59 +07:00
Pun Butrach 436b59f0d4 Milestone D3R3, continue to D4R1 2026-01-10 20:51:17 +07:00
Pun Butrach ba6a8df5fc fix: Module bugs 2026-01-10 20:48:14 +07:00
Shamali Patwa 6710f2faf2 Pass down the widget interaction callback and flag on whether to support drag shadow
Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: N/A
Change-Id: I8d04cb3b0e52c202bf6223e0b0e2e10a4ca6fdb8
2025-06-02 18:46:54 -07:00
Shamali Patwa e7e3a14e95 Adds widget picker landing screens
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
2025-05-23 11:52:46 -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 Patwa d3c07f8e9c Add use cases in widget picker domain layer that apply business rules.
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
2025-05-22 16:03:27 -07:00
Shamali Patwa 0b3a0df76a Add test for widget previews using remote views.
Bug: 408283627
Flag: EXEMPT independent module
Test: WidgetsGridScreenshotTest:widgetsGrid_remoteViews
Change-Id: I4ce8eb92269af13207180e50793e65e23958cd00
2025-05-19 13:12:10 -07: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