Commit Graph

19 Commits

Author SHA1 Message Date
Charlie Anderson cd4382aa43 Add more logging for the options launcher returns to picker
Bug: 413707700
Test: N/A just logs
Flag: EXEMPT just logs

Change-Id: I2377a6bcf7fa8d219fec784570ff92eface1118e
2025-05-15 12:21:40 -07:00
Catherine Liang 00dbb434dd Fix incorrect widget layout when previewing grid
When previewing grid, actual widgets are updated. Revert grid changes
when preview binder dies to restore original widget layout in Launcher.

Flag: com.android.systemui.shared.new_customization_picker_ui
Bug: 408934352
Test: manually verified
Change-Id: I18f63fd1760b1188306defd2a8315fe5765dab01
2025-05-15 18:43:27 +00:00
Sunny Goyal 63fe0c779e Adding support for generating a preview bitmap with an optional delay to allow widgets to be rendered
> Adding a completionSignal when preview is generated so that callers can wait on it
> Also adding support for proving an optional screen-id for preview

Bug: 400403115
Test: atest GridPreviewTest
Flag: EXEMPT refactor and unused new API

Change-Id: I569e0ab318ad101e4f6dd808f2e1cfc39ba50bda
2025-05-09 10:42:39 -07:00
Charlie Anderson f2d24992e7 Add logging for preview ContentProvider in GridCustomizationsProxy
Bug: 413707700
Test: N/A just logs
Flag: EXEMPT just logs
Change-Id: I626e9f7c3b4abafcf109657b070b4267eebdf166
2025-05-07 20:58:11 +00:00
Charlie Anderson b801585f92 Fix crash when previously selected shape no longer exists
Flag: com.android.launcher3.enable_launcher_icon_shapes
Flag: com.android.systemui.shared.new_customization_picker_ui
Bug: 414860182
Test: manually flipping icon shapes flag off and opening new picker
Change-Id: I1fdb1a5f790438055fae28c65e4653d97042ea7f
2025-04-30 17:39:44 -04:00
George Lin fa2c9ab00b Fix shape update unexpected (2/2)
1. Fix shape update unexpected after updating grid
2. Fix grid apply not updated after clicking

Test: Manually tested. See bug.
Bug: 409895694
Flag: com.android.systemui.shared.new_customization_picker_ui
Change-Id: Iad1b29b222adf1a0ed5a73b53b72b4dcf979e335
2025-04-16 18:11:24 +00:00
Treehugger Robot e5ae6347f3 Merge "Enable previewing themed icon in wallpaper picker" into main 2025-03-28 09:49:54 -07:00
Sihua Ma 5c1534b58d Enable previewing themed icon in wallpaper picker
Test: Presubmit
Flag: com.android.systemui.shared.new_customization_picker_ui
Bug: 406813938
Change-Id: I9377db41ac422cd80e7af434f28a5b16cdbd02d2
2025-03-27 22:38:03 +00:00
Charlie Anderson d2560ecf31 Add transalatable Strings for shape titles
Bug: 406486710
Test: presubmit
Flag: com.android.launcher3.enable_launcher_icon_shapes
Change-Id: I227227e7591979de474c27adcd71c6d83393bae9
2025-03-26 20:09:07 -07:00
Charlie Anderson 347fc5e227 Merge "Make apply button for shapes ~28522% faster in picker" into main 2025-03-25 11:24:32 -07:00
Charlie Anderson 34bbc47c37 Make apply button for shapes ~28522% faster in picker
In reality just makes shapes load asynchronously when applying, to unblock users.
In the future we may want to at least wait for preview to load, and handle case where users leave picker early.

Bug: 404486355
Test: tested applying each shape in picker and measuring the elapsed time
Flag: com.android.launcher3.enable_launcher_icon_shapes
Flag: com.android.systemui.shared.new_customization_picker_ui
Change-Id: Ic844a3519a8d7ecde80b72c0616a9e08edceb310
2025-03-25 08:31:04 -07:00
Sunny Goyal 31b4d2bd32 Adding support for custom layouts in Preview
Also fixing folder items not getting loaded when using sandbox

Bug: 381897614
Test: Verified manually
Flag: com.android.launcher3.extendible_theme_manager
Change-Id: I57232dcb4112c9e4d9dd08f02fc1b720a5adb0e2
2025-03-21 10:32:38 -07:00
Treehugger Robot 86045eadd7 Merge "Making GridCustomizatonProxy extendible" into main 2025-03-14 14:05:58 -07:00
George Lin e24533cb40 Handle app icon preview and update cases
Add 2 more cases:
1. Update icon shape only
2. Preview icon themed

Test: TBD
Bug: 402161932
Flag: com.android.systemui.shared.new_customization_picker_ui
Change-Id: I2dc21e14d346a1d444ed8baa759e7a6d38f6cd41
2025-03-11 23:02:59 +00:00
Sunny Goyal 029315d9f5 Making GridCustomizatonProxy extendible
Bug: 381897614
Flag: com.android.launcher3.extendible_theme_manager
Test: Manual
Change-Id: I9a29e371a4159ba436d4caaffce4bcdaa7fd16e2
2025-03-11 11:57:47 -07:00
Charlie Anderson dfb45d9c03 Simplify ShapesProvider and use constants
Bug: 398689048
Bug: 372884380
Test: presubmit and locally
Flag: com.android.launcher3.enable_launcher_icon_shapes

Change-Id: I102265ef4b25d84bb7a0b1f9642a9c19a7200e22
2025-02-25 20:17:54 -08:00
Sunny Goyal b1fab90e26 Enforcing grid customization permission in manifest instead of code
Bug: 389173244
Test: Updated tests
Flag: EXEMPT manifest change
Change-Id: I0fee57f935156da6b2b5a612259db2c4b3605846
2025-02-24 10:40:43 -08:00
Charlie Anderson de15672e6f Initialize shape with PreviewContext init and remove nullability
Bug: 372887760
Bug: 348664593
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: previewing shapes with flag on/off
Change-Id: I4d7278c54a0d69e38142d31dd7a9605a74db3348
2025-02-21 20:23:49 +00:00
Sunny Goyal 3fd385c1cd Moving grid customization provider to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I0ebc2a614b9448e5de97d3dda43d98b951989689
2025-02-20 10:16:56 -08:00