Commit Graph

82234 Commits

Author SHA1 Message Date
Steven Ng 3f9fa4e2db Don't show phantom animation when switching app in connected display oveview
In TaskViewUtils, the StateManager#movetoRestState method is invoked after the recents animation finishes and before the launcher state is reapplied. The issue leading to a phantom transition is that moveToRestState initiates an animation due to RecentsWindowManager#shouldAnimateStateChange always returns true.
Connected display overview is similar to 3P recents. And thus, we follow RecentsActivity#shouldAnimateStateChange to always return false.

Test: manually click on a overview tile in the connected display. No phantom animation is observed after switching to the app.
Flag: com.android.launcher3.enable_overview_on_connected_displays
Bug: 415245440
Change-Id: I3c9600cae6ce9058749365734f433f5e3cdb9445
2025-05-06 17:56:01 +00:00
Treehugger Robot d7802c985c Merge "Limit LauncherTaskbarUIController to primary" into main 2025-05-06 02:55:48 -07:00
Treehugger Robot f2fff33546 Merge "Adds gpuLoadUp calls for Launcher blur preparation." into main 2025-05-05 20:45:01 -07:00
Li Lin 7c91724c2c Merge "Remove URL from image model." into main 2025-05-05 17:07:18 -07:00
Treehugger Robot 237e594dd0 Merge "Return to BackgroundAppState when tapping gesture region in desktop" into main 2025-05-05 15:31:18 -07:00
Sebastián Franco 24a321d835 Merge "Creating NexusLauncherE2ETests test suite, this cl only adds the Launcher3 part" into main 2025-05-05 14:30:04 -07:00
Andy Wickham 1d8676a965 Adds gpuLoadUp calls for Launcher blur preparation.
Basically the same places we were notifying expensive frames.

Test: forrest perf suites
Flag: com.android.launcher3.all_apps_blur
Bug: 410973453
Change-Id: Ifb8ee7010e0faacc9ccc21076fc8614f335e2863
2025-05-05 19:46:49 +00:00
Daniel Andersson cf29edfa2f Merge "desktop-exploded-view: Fix broken live tile when activating desk" into main 2025-05-05 12:46:01 -07:00
Fengjiang Li bccc1a8fa1 Merge "[Memory Leak] Fix leak of TIS from taskbar's pending intent" into main 2025-05-05 12:41:09 -07:00
Sebastian Franco fc8537d5de Creating NexusLauncherE2ETests test suite, this cl only adds the Launcher3 part
The test don't run yet in presubmit, first I will have the NexusLauncherE2ETests
target ready and then I will add it to the presubmit.

Bug: 324261526
Flag: EXEMPT test only
Test: atest NexusLauncherE2ETests
Change-Id: I4daa204ec735456c481b0682ca518da381af7bb7
2025-05-05 18:53:08 +00:00
Sunny Goyal 55b5e41d8a Merge "Removing Smartspace as a widget flag" into main 2025-05-05 10:01:05 -07:00
Fengjiang Li a6c437c42f [Memory Leak] Fix leak of TIS from taskbar's pending intent
Fix: 415321479
Flag: NONE - released code
Test: manual
Change-Id: I70e2201695cb3e8501315a5ae8fd86b150d57c35
2025-05-05 09:26:55 -07:00
Bill Yi a589d95676 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-04 21:41:56 -07:00
Bill Yi efe18a36ed Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-04 21:41:56 -07:00
Schneider Victor-tulias a8053f8cba Merge "Support the gesture nav contract for recents in window" into main 2025-05-03 20:02:30 -07:00
Treehugger Robot af24c515c9 Merge "Fix taskbar visibility for desk->desk in Overview" into main 2025-05-02 22:02:38 -07:00
Treehugger Robot 51c9c19e89 Merge "Remove RecentTasksList implement of DesktopVisibilityController" into main 2025-05-02 18:26:06 -07:00
Treehugger Robot 418a8e4aa9 Merge "Update All Apps divider color." into main 2025-05-02 17:43:28 -07:00
Treehugger Robot b393e253de Merge "Fix Data Import for folder-internal items" into main 2025-05-02 17:17:51 -07:00
Andy Wickham 34fba0fcb7 Merge "Ensure an opaque scrim is used for legacy all apps." into main 2025-05-02 16:39:53 -07:00
Treehugger Robot f3fceaca6c Merge "Update All Apps sheet interpolators." into main 2025-05-02 16:35:06 -07:00
Treehugger Robot 1a597d619b Merge "Remove IME-specific touch passthrough for Taskbar" into main 2025-05-02 14:42:04 -07:00
Liran Binyamin 00dc879e2c Merge "Send bubble bar distance to shell" into main 2025-05-02 14:35:40 -07:00
Ats Jenk e2c8c68edb Merge "Make sure animation is cancelled for existing flyout" into main 2025-05-02 14:22:24 -07:00
Andy Wickham 4efae39779 Ensure an opaque scrim is used for legacy all apps.
When there's no background panel, we should ensure an opaque
background scrim is used.

Fix: 414718408
Test: Manual with all_apps_blur and all_apps_sheet_for_handheld off.
Flag: EXEMPT bugfix
Change-Id: I1ac9f5f8fbb01f2c6a42e9f79823b5f293ebf709
2025-05-02 13:49:51 -07:00
Andy Wickham 28f422544e Update All Apps sheet interpolators.
This is a bit of a stopgap until we are able to adopt a more
versatile mechanism similar to SysUI, but here's the high level:
 - Workspace scale finishes more quickly than blur (53% vs 83% of
   the transition)
 - Closing All Apps reverses the opening interpolators (avoid blur
   disappearing too quickly).

Design intent is described in the bug.

Demo: https://drive.google.com/file/d/14Y28NeHoh_RBh3acXijhhx_ZIUK8GmYy/view?usp=drive_link&resourcekey=0-A9AUbEZcJsmP1GtSqbbrgg

Bug: 415247657
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Flag: com.android.launcher3.all_apps_blur
Test: Manual
Change-Id: Iffa8e6f9dd98817899aadb3fb28fecd6c53bca7e
2025-05-02 13:36:27 -07:00
Tony Wickham f7772b88af Return to BackgroundAppState when tapping gesture region in desktop
If the end target is null, that means the gesture did not move
enough to calculate an actual end target, and LAST_TASK is the
default for that case. We probably don't need the desktop check
specifically (could clean it up in a follow up) but since this
bug is specifically for Desktop mode I left it in for now.

Fixes: 359879541
Test: manual, tap Taskbar in Desktop and ensure no flicker
Flag: EXEMPT bugfix

Change-Id: Icc3e645819a22ed96d07a575cdccda30a5d800c1
2025-05-02 20:19:03 +00:00
Treehugger Robot 7a2d5b454f Merge "Add magnetic detach to task dismiss using MotionValue library." into main 2025-05-02 12:34:47 -07:00
Schneider Victor-Tulias 9118d87d84 Support the gesture nav contract for recents in window
- Support for the GNC allows for some additional animations and clean up. The missing clean up was causing test failures
- Also fixing broken GNC support for split apps. Swiping up from split apps caused consistent crashes, however since the current 1P swipe to home has no special animation, updating the recents window and 3P GNC to match this.

Flag: com.android.launcher3.enable_launcher_overview_in_window
Bug: 377678992
Test: pre/postsubmit; swipe home from 1P and 3P launcher
Change-Id: Idf24d7969e76a50ff656f6644c2b568c42e409d7
2025-05-02 15:32:51 -04:00
Treehugger Robot 21779a4192 Merge "Moving WorkspaceItemFactory to dagger as PredictedItemFactory so that it can be reused" into main 2025-05-02 11:46:48 -07:00
Suhua Lei 69ba07f2cf Fix taskbar visibility for desk->desk in Overview
Bug: 413192207
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: switch between desks in Overview
Change-Id: I49806fe2b0790b1bccbac04625d7ee553c7ab3eb
2025-05-02 11:27:48 -07:00
Daniel Andersson 05fdc49ef7 desktop-exploded-view: Fix broken live tile when activating desk
- Apply scrollOffset directly to tvs.recentsViewCroll, which already take orientationHandler into account
- Apply gridTranslationY directly to taskSecondaryTranslation, which already take orientationHandler into account
- This make sure both translations are applied after mTaskRectTransform
- Also re-calculate tvs task size after updating orientationState rotations, as the orientationHandler might be changed and affect task position
- Remove setTaskRectTranslation that is no longer used

Flag: EXEMPT bugfix
Test: manual with central/side task launching with portrait, fake landscape and 3p launcher
Bug: 410628946
Change-Id: I8ef38d193328e8a449594515403c00f517e213b3
2025-05-02 11:10:52 -07:00
Treehugger Robot d2cf9a98f2 Merge "Ignore KeyboardQuickSwitchControllerTest to fix robo failure" into main 2025-05-02 11:06:08 -07:00
Xiaoqian (Daisy) Dai 276e0be2a4 Merge "desktop-exploded-view: temporarily disable the functionality..." into main 2025-05-02 10:55:42 -07:00
Stefan Andonian 1725d9d75f Fix Data Import for folder-internal items
Bug: 379378706
Test: Verified this works locally.
Flag: com.android.launcher3.external_data_access
Change-Id: I0396a593bd02591ae599e0eb9b9e44922bd17960
2025-05-02 10:55:17 -07:00
Jagrut Desai d95a630277 Merge "Tapl widget change" into main 2025-05-02 10:49:24 -07:00
Pat Manning d2f050ab26 Add magnetic detach to task dismiss using MotionValue library.
Fix: 389081766
Test: TaplTestsQuickstep
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I77f980f9851f4b1c041cbf3bb7247b972c1730fd
2025-05-02 17:13:57 +01:00
Sunny Goyal 46b13eb184 Moving WorkspaceItemFactory to dagger as PredictedItemFactory so that it can be reused
Bug: 390572144
Flag: EXEMPTY refactor
Test: Presubmit
Change-Id: I41c5fea73452d7f4c1fd9980a89bcb7199eb19d7
2025-05-02 08:55:21 -07:00
Liran Binyamin 34024fe26a Send bubble bar distance to shell
We previously sent the top coordinate of the bubble bar to shell.
However when the screen height changes, launcher takes a bit longer
to update than shell. So instead of calculating the top coordinate
on the launcher side, we now send the amount of space between the
bubble bar and the bottom of the screen to shell, where we can offset
that as needed.

Bug: 392893178
Flag: com.android.wm.shell.enable_bubble_bar
Test: manual
       - send some bubbles
       - launch app
       - expand
       - swipe to home
       - fold and unfold
Change-Id: I57b96db49dab1e2304fde8dc55a99eaaf85e40f8
2025-05-02 10:54:39 -04:00
Schneider Victor-tulias 9b468c5b24 Merge changes Id95b36da,I6a2225be into main
* changes:
  Fix recents window activity leak
  Update TAPL tests to dismiss all tasks safely
2025-05-02 07:38:30 -07:00
Alex Chau 14f266442b Merge "Don't consider IME insets in mSystemGestureRegion" into main 2025-05-02 01:47:08 -07:00
Treehugger Robot 5f38710c0e Merge "Only use RecentsWindowManager instances for CDs" into main 2025-05-01 22:42:17 -07:00
Ajinkya Chalke b7033ceb76 Limit LauncherTaskbarUIController to primary
- Only primary displays should use LauncherTaskbarUIController.
- This change is required for overview on connected displays to work.

Bug: 362720616
Test: m
Flag: com.android.window.flags.enable_taskbar_connected_displays
Change-Id: I6945107e6072561b1904dcafd6106d4317eaba1d
2025-05-02 00:37:21 +00:00
Ajinkya Chalke d616551419 Only use RecentsWindowManager instances for CDs
Bug: 414767197
Test: m
Flag: com.android.window.flags.enable_taskbar_connected_displays
Change-Id: I8f2f143ef8ca885c089b83559899746ac594400a
2025-05-02 00:13:53 +00:00
Xiaoqian Dai b9d3a5cc44 desktop-exploded-view: temporarily disable the functionality...
... to launch an individual task window from desktop tile in Overview
when multi-desks is enabled, until the fix for b/413378320 is landed.

Note the changes in
http://ag/q/topic:%22activate-window-from-exploded-view%22 is the right
implementation, however it will only work for multi-desks with the fix
for b/413378320 is in place.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 413378320
Change-Id: I72914d60fb0ec2e80af6faa7441a67e743720c38
2025-05-01 23:59:05 +00:00
Bill Yi ac48b8b3d3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1eed4123bfdbcfc64712de5f3f6463381fac0ec8
2025-05-01 23:42:04 +00:00
Bill Yi 1e52b70434 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I83194d37008b416e8b9ba57c72e68b13ad6b282e
2025-05-01 23:41:03 +00:00
Vadim Tryshev bc6b9ea148 Merge "Failures caught by launcher.checkForAnomaly did not produce screenshots." into main 2025-05-01 16:29:38 -07:00
Ajinkya Chalke 98ce0f4ccb Ignore KeyboardQuickSwitchControllerTest to fix robo failure
Bug: 413540825
Flag: EXEMPT ignoring test
Test: atest
Change-Id: I75a15563fbc8cc500df73c9b1d1e9bf2e2d378b8
2025-05-01 16:16:19 -07:00
Jagrut Desai 4fde59e821 Tapl widget change
- scroll if the header is under gesture region and click in same scroll loop

Test: Local, Presubmit
Bug: 402828709
Flag: EXEMPT bugfix

Change-Id: I90a5cf2829591aafd18ef625244def2c4d9e3980
2025-05-01 16:15:25 -07:00