Commit Graph

83004 Commits

Author SHA1 Message Date
Alex Chau 31f32597dd Merge "Fix jump when dismissing last grid task View" into main 2025-02-24 10:35:14 -08:00
Schneider Victor-Tulias de841f6092 Respect accessibility animation guidelines in AllSetActivity
- Disabling the background animation if the user has opted out
- Allow the user to pause/resume the animation

Flag: EXEMPT bug fix
Fixes: 386743741
Test: launched AllSetActivity with animations on/off; tapped screen in both cases
Change-Id: I2bdbef24d6c582b4229441149fffcb67ba488882
2025-02-24 10:00:32 -08:00
Charlie Anderson d4d526c3b5 Merge "Simplify some package update logic around restoring archived/unarchived shortcuts" into main 2025-02-24 09:58:35 -08:00
Treehugger Robot 332c329276 Merge "Fixing model thread priority getting set to background while loading" into main 2025-02-24 09:40:53 -08:00
Jagrut Desai e49214080f Fix Taskbar Edu accessibility anmimation
This cl include: Allows user to click on lottie animation views to play and pause animations. If user have choosen to remove animations we will honor it and not play the animation from begaining.

Test: Manual, Presubmit
Bug: 378980835
Flag: EXEMPT bugfix
Change-Id: Ieaaf771bc307837f042f6e59d8f02fefb2e8286a
2025-02-24 09:36:22 -08:00
Brandon Dayauon 8f0df9a92c Merge "Change ps_install app icon to adaptive drawable" into main 2025-02-24 09:33:49 -08:00
Treehugger Robot 2be0868a34 Merge "Add missing bits of cleanup to TV recycle stage" into main 2025-02-24 07:51:33 -08:00
Treehugger Robot 19db412ca6 Merge "Update NavHandle tests to use more conservative timings." into main 2025-02-24 06:51:09 -08:00
Uwais Ashraf 5e3331dc6f Add missing bits of cleanup to TV recycle stage
Bug: 395331030
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: Manual heap dump comparison
Change-Id: Ifa40d7bf874b0437fb0dc59a964748366ffe9986
2025-02-24 07:24:37 +00:00
Treehugger Robot 63de256dfe Merge "Add deskId to DesktopTask." into main 2025-02-21 18:33:52 -08:00
Andy Wickham 471ad8400f Update NavHandle tests to use more conservative timings.
On some devices, the long press would trigger due to an overly
long wait in the test. Separately, the small slop tests were
using a slop that would trigger the second stage if that flag was
enabled, so the trigger didn't happen (WAI). We already test 2
stage, so I updated these tests to use a smaller slop that should
not trigger with or without 2 stage.

Test: atest NexusLauncherTests:com.android.quickstep.inputconsumers.NavHandleLongPressInputConsumerTest -- --abi arm64-v8a
Flag: EXEMPT tests
Fix: 398216382

Change-Id: Iec633d01eff63eac8ba072fef4ac1e7b452d8242
2025-02-22 02:30:18 +00:00
Treehugger Robot 467ab548d9 Merge "Initialize shape with PreviewContext init and remove nullability" into main 2025-02-21 17:17:26 -08:00
Xiaoqian (Daisy) Dai 9ca73dfa09 Merge "desktop-exploded-view: Implement the close button and its behavior" into main 2025-02-21 16:53:28 -08:00
Sunny Goyal 362fa9e96a Fixing model thread priority getting set to background while loading
Bug: 396250724
Flag: EXEMPT bugfix
Test: Manual
Change-Id: I587d6c64f75a4fd2b68c4e98c3b1cab30864879c
2025-02-21 16:02:03 -08:00
Jeremy Sim 96da8fc3ec Merge "Refactor SplitBounds to always use creation-time measurements" into main 2025-02-21 15:26:02 -08:00
Brandon Dayauon 29ae91c36f Change ps_install app icon to adaptive drawable
In the before pic, you can see that the original drawable is
small/compressed with a white ring around it. You can't really see that
in the light theme since the white ring is blended. It is much clearer in the
dark theme that this is the case.

Changing the vector drawable to adaptive-icon will fix the white ring
in the icon.

bug:396346767
Test: manual screenshot:
before:
light theme: https://hsv.googleplex.com/6358252685099008
dark theme: https://hsv.googleplex.com/6567188726022144
after:
light theme: https://hsv.googleplex.com/4762286056013824
dark theme: https://hsv.googleplex.com/4821700083449856
Flag: EXEMPT bug fix

Change-Id: Ib557bcf5fce5e58b6be4bb8bc82673441816b2d7
2025-02-21 23:03:53 +00:00
Xiaoqian Dai 6aca9bedd5 desktop-exploded-view: Implement the close button and its behavior
Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual + newly added tapl tests in a following CL
Bug: 353965691

Change-Id: Iba4603b84928885b1d50f5551adbacbd31e98cc3
2025-02-21 22:23:41 +00:00
Charlie Anderson 9e50a01e92 Simplify some package update logic around restoring archived/unarchived shortcuts
- also avoids race condition where unarchived shortcut is not pinned in shortcut service after restore, and then marked as broken

Bug: 375414891
Test: Launcher B&R w/ archiving
Flag: com.android.launcher3.restore_archived_shortcuts
Change-Id: I2b5331117be93d66e4acbded49b65cd5ce9f8f83
2025-02-21 17:04:12 -05:00
Sunny Goyal 7a38a45ca3 Merge "Moving LooperExecutor to kotlin" into main 2025-02-21 14:02:16 -08:00
Treehugger Robot cc51f625ae Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-21 13:47:41 -08:00
Treehugger Robot 90f2ff3dc5 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-21 13:47:41 -08:00
Stefan Andonian e14ca0d14c Merge "[Memory Leak] Fix leak of LauncherAppWidgetHostView via StateManager.StateListener" into main 2025-02-21 13:02:08 -08:00
Treehugger Robot a8b8c7c3eb Merge "Correct the page scrolls of the AddDesktopButton" into main 2025-02-21 12:59:52 -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
Saumya Prakash 1393d559c2 Update gesture nav tutorial to new font style
This change applies the new expressive font style if the expressive
theme is enabled. Screenshots are available in the bug

Fix: 393615349
Test: Check that the fonts change when the expressive theme is enabled
Flag: com.android.launcher3.expressive_theme_in_taskbar_and_navigation
Change-Id: Ib67e81edfd7aa125b9aa824946616c02e24c13e6
2025-02-21 10:57:08 -08:00
Charlie Anderson aa0f606b9c Merge "Add more checks around archived shortcut restore" into main 2025-02-21 10:46:57 -08:00
Treehugger Robot 2e759f359c Merge "Launcher: Make RecentTasksController.getRecentTasks() multi-desks aware" into main 2025-02-21 10:38:35 -08:00
Alex Chau 7d47679892 Fix jump when dismissing last grid task View
- Calcualte the scroll diff to bring large tile to middle of screen
- Additional compensate for scroll diff between last task and ClearAllButton if ClearAllButton is visible

Fix: 395883390
Test: manual, not adding e2e because animation jump cannot be caught by e2e test
Flag: com.android.launcher3.enable_grid_only_overview
Change-Id: I6a506f2af46ded4daf21fe49329ab71b59e3f19d
2025-02-21 18:08:33 +00:00
Sunny Goyal 7629bc4dcd Merge "Converting LauncherAppState to Dagger" into main 2025-02-21 10:06:01 -08:00
Fengjiang Li 710bce6163 Merge "[Memory Leak] Fix leak of NexusLauncehrActivity via AbsSwipeUpHandler#mRecentsAnimationStartCallbacks -> SurfaceTransactionApplier" into main 2025-02-21 09:52:49 -08:00
Daniel Andersson 050e6eebb0 Merge "desktop-exploded-view: Explode desktops when swiping up from home" into main 2025-02-21 09:50:39 -08:00
Ahmed Fakhry dafc2d4c42 Add deskId to DesktopTask.
Now that `GroupedTaskInfo` propagates the `deskId` from
Shell (see ag/31825217), we need to plumb this value in
Launcher through `DesktopTask`.

Future CLs will use this value in Overview.

Bug: 395911284
Test: m, modified existing tests.
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I396250e0cac761c4c5f7e8b2d6cddbe68e646217
2025-02-21 17:50:13 +00:00
minch 1c028b7ccb Correct the page scrolls of the AddDesktopButton
Do not apply the button's grid translation to its page scrolls if
it is not showing as a grid,otherwise the `mCurrentPage` may not be
set correctly while checking `ensureWithinScrollBounds`.

Bug: 396146789
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: m
Change-Id: Ia1378a997e681abda60fa1cb3c125660916df4c5
2025-02-21 09:06:53 -08:00
Treehugger Robot b38ab564be Merge "Close gap between grid and clear all for expressive dismiss." into main 2025-02-21 04:01:11 -08:00
Fengjiang Li e0553d7da3 [Memory Leak] Fix leak of LauncherAppWidgetHostView via StateManager.StateListener
Rather than register a StateListener for each LauncherAppWidgetHostView, just register one StateListener which, upon launcher state is changed to NORMAL, iterate over all child views under Workspace and perform a11y action if view tag is set.

Fix: 397978703
Test: presubmit
Flag: EXEMPT bug fix
Change-Id: I044d012b74eaa5356196c5503318fa8ab389ec46
2025-02-20 22:05:02 -08:00
Jaewan Kim 0fc8aa7b8b Declare android.intent.action.ALL_APPS explictly
This helps to open all apps via adb command in standard way
when gesture action isn't convenient. (e.g. Cloud Android)

Note that the intent is defined in Intent.java and public,
and Launcher activity has handled the intent.

Test: Manually on Cloud Android
Flag: EXEMPT nitfix
Bug: 398109316
Change-Id: I61a33d9074d0bead42bdab3679777fbf892cf3bd
2025-02-20 21:52:02 -08:00
Treehugger Robot feb96ff7d3 Merge "Launch app pair when one of them is in freeform." into main 2025-02-20 20:29:16 -08:00
Bill Yi 77a5570d16 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I64be39ef9954803287b1eca87bc57b6302211250
2025-02-20 20:24:33 -08:00
Bill Yi f20b4e9e4f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7b58aa89a399c9d5f79dac7e319414823522ae6c
2025-02-20 20:23:44 -08:00
Sunny Goyal c9f697aeb5 Converting LauncherAppState to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I336a233d2703c23a7e9065474bde471786886144
2025-02-20 19:13:49 -08:00
Sunny Goyal 4742d62285 Moving LooperExecutor to kotlin
> Will improve priority changes in a followup cl

Bug: 396250724
Flag: EXEMPT refactor
Test: Presubmit
Change-Id: Ic9646e9b1b8faf80996f6e63159e8abbf00fc0b7
2025-02-20 18:58:33 -08:00
Saumya Prakash 4e0e72e013 Merge "Add developer option to launch gesture nav tutorial" into main 2025-02-20 18:42:36 -08:00
Shamali Patwa e532fc86b4 Merge "Update widgetsModel to return pickable vs all widgets separately." into main 2025-02-20 17:42:32 -08:00
Treehugger Robot aea16bd093 Merge "Expose icon scale to properly shape themed icons" into main 2025-02-20 17:30:46 -08:00
Treehugger Robot 48fe315833 Merge "Update usage of flags to dev options." into main 2025-02-20 17:29:38 -08:00
Treehugger Robot 6787617f73 Merge "Log LPNH abandon times at least 200ms." into main 2025-02-20 17:16:15 -08:00
Charlie Anderson cf37c5ba7e Add more checks around archived shortcut restore
Bug: 375414891
Test: Launcher B&R and WorkspaceItemProcessorTest
Flag: com.android.launcher3.restore_archived_shortcuts

Change-Id: I58332dcee9563bb6c87aeff7255c8a9e2a8ca2c7
2025-02-20 19:15:41 -05:00
Treehugger Robot ca88e0cc04 Merge "Log minimize CUJ in MinimizeAnimator" into main 2025-02-20 14:52:48 -08:00
Ahmed Fakhry f7e64649a1 Launcher: Make RecentTasksController.getRecentTasks() multi-desks aware
This is the Launcher-side CL  of the companion CL ag/31825217.
This CL changes `GroupedTaskInfo` and `RecentTasksController.getRecentTasks()`
such that multiple desktops are supported.

Bug: 395911284
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I856768d03460054ccd7056f87e16dcb65ced47fb
2025-02-20 22:31:58 +00:00
Daniel Andersson 1422e89e92 desktop-exploded-view: Explode desktops when swiping up from home
This change makes it so that the explode animation only happens when
swiping up from the desk. In other cases, the desk is immediately set
to its exploded state.

The desk explode progress is now exposed as a FloatProperty in
RecentsViewUtils.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 367353392
Change-Id: I5adec7db1fdc933860dce7fcca0a47cec0672ee7
2025-02-20 14:30:47 -08:00