Commit Graph

15130 Commits

Author SHA1 Message Date
Treehugger Robot
053c33dc4f Merge "Use visibleNonExcludedTask as runningTask in 3 button flow as well" into main 2025-06-06 09:01:48 -07:00
Alex Chau
7a28cf4d16 Use visibleNonExcludedTask as runningTask in 3 button flow as well
- The same logic is introduced in `InputConsumerUtils` to fix same issue for Circle to Search, but didn't get added to 3 button
- Copying the same logic to find the task underneath the Overlay (e.g. CtS or Gemini) to OverviewCommandHelper to fix the issue

Fix: 422147244
Test: Start CtS or Gemini overview an app, tap Recents button
Flag: EXEMPT bug fix
Change-Id: I9934288f72c8964d84265b2488fd2ee1ca4ff7f7
2025-06-06 14:35:14 +01:00
Treehugger Robot
b72bf3993f Merge "Handle focus events for Overview live tile" into main 2025-06-06 02:03:12 -07:00
Treehugger Robot
8dfea45cfb Merge "KeyEvent.KEYCODE_TAB changes TaskView" into main 2025-06-05 23:11:00 -07:00
Saumya Prakash
0c7268c11c Merge "Update All Set page to expressive style" into main 2025-06-05 13:29:01 -07:00
Jon Miranda
9800280148 Merge "Fix bug where window is cropped to insets on 3 button phone mode." into main 2025-06-05 12:59:43 -07:00
Saumya Prakash
12d49ce2ce Merge "Ensure correct conditions for TaskbarStashControllerTest" into main 2025-06-05 11:54:49 -07:00
Treehugger Robot
f3aeca0d4b Merge "Fix app tile blur when clicked on recents button rapidly." into main 2025-06-05 11:47:26 -07:00
Merissa Mitchell
5a5abed293 Merge "[Pip] Don't reload Recents on onActivityUnpinned" into main 2025-06-05 11:33:34 -07:00
Saumya Prakash
3ec143f029 Update All Set page to expressive style
This change sees the All Set page at the end of the Setup wizard be
redesigned to match the expressive theme. Changes include background,
fonts, and overall style.

Fix: 390550173
Test: Run SUW with a device that has the expressive theme enabled for
SUW
Flag: EXEMPT bugfix

Change-Id: I335b62d34a0587d8b5bba7f86dcc0670ec248ada
2025-06-05 10:23:03 -07:00
Elijah Hewer
9e3393a265 Merge "desktop-exploded-view: Update isFocusable location" into main 2025-06-05 10:07:04 -07:00
Jon Miranda
b62fbe7a0e Fix bug where window is cropped to insets on 3 button phone mode.
Fixes: 409548889
Test: manual
Flag: EXEMPT bugfix
Change-Id: I829dfa9033fbc308a7d63297b691198672afa655
2025-06-05 09:58:28 -07:00
Vinay Joglekar
8f29707aee Fix app tile blur when clicked on recents button rapidly.
When we tap on recents, setActivityStarted set to true where
setBaseSurface is called with launcher surface. When app is opened
setActivityStarted is false and setBaseSurface is set to null.

In subsequent calls, between where call to setBaseSurface with launcher
is skipped. This causes due to race condition between
removeOnDrawListener which is "asynchronously" posted from
onLauncherDraw and addOnDrawListener. This makes addOnDrawListener not
to get properly added.

Hence mBaseSurface remains null and we do not get chance to set the blur
to launcher layer to 0 and then reparent/relayer blur behind live tile.
Hence blur is still over launcher layer which makes live tile blur.

Added boolean that makes async removeOnDrawListener in onLauncherDraw
cancellable.

Fix: 387428198
Test: Rapidly tap on recents button
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I5ed2ec198563d9edb181a723c9db47ecfe500c5d
2025-06-05 09:20:16 -07:00
Treehugger Robot
ca739ac8ae Merge "Add tooltip for taskbar overflow button" into main 2025-06-05 09:02:43 -07:00
Treehugger Robot
bd029b8887 Merge "Fix IllegalStateException in AbsSwipeUpHandler.onRecentsAnimationStart" into main 2025-06-05 07:12:28 -07:00
Sam Cackett
d1b5d4c27e Handle focus events for Overview live tile
In liveTile mode, an InputConsumer is used for gesture navigation and
this consumes all InputEvent's. As a result, the framework doesn't see
these events and so focus isn't handled.

This CL override's dispatchKeyEvent in some of the key views in
RecentsView and handles changing focus correctly.

Bug: 366177160
Fix: 403292849
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual using keyboard navigation
Change-Id: Icc15abb19f72d28340ae944aa59b67ddec2eceda
2025-06-05 14:26:02 +01:00
Treehugger Robot
709590e001 Merge "Do not clear offloaded task's icon if in split selection." into main 2025-06-05 05:58:19 -07:00
Sam Cackett
4c06aff54b KeyEvent.KEYCODE_TAB changes TaskView
This CL restores previous tabbing behaviour to select each TaskView, rather than enter the TaskView and cycle the children as this behaviour hasn't been fully implemented and there are some issues with live tiles, so restoring the previous behaviour.

Note: rather than revert ag/32253797, I decided to leave it as if the menu is open, then the tabbing behaviour works in the menu, so didn't see a reason to revert it.

Bug: 366177160
Bug: 403292849
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual using keyboard navigation
Change-Id: I27660bdac60ee572cd633bd58465a6b8bc66aad2
2025-06-05 13:53:14 +01:00
Toni Barzic
f9d6341458 Add tooltip for taskbar overflow button
Bug: 402787161
Test: Manual
Flag: com.android.window.flags.enable_taskbar_overflow

Change-Id: I04704612260f17561b4d18804d792a3fe0d47313
2025-06-05 05:05:44 +00:00
Merissa Mitchell
98f0937787 [Pip] Don't reload Recents on onActivityUnpinned
Invalidate the Recents list but don't reload the view immediately when
PiP is dismissed. This effectively reverts commit
If593c2e7271e972e96b1ab21b4396af66b1e3ea4.

Bug: 416666696
Test: m
Test: Presubmits
Test: Manual - enter PiP, then swipe up to Overview. Dismiss PiP and
verify the list is not updated. Exit Overview and re-enter Overview.
Verify that the list is updated with the previously PiP-ed task.
Flag: EXEMPT bug fix

Change-Id: Iaa832f3b4e42404a7469b6b53a379ef42d959442
2025-06-04 15:42:34 -07:00
Elijah Hewer
5a85d99b97 desktop-exploded-view: Update isFocusable location
As a follow up to ag/33785016, move the setting of isFocusable into
enableDesktopExplodedView.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: manual
Bug: 353949686
Change-Id: I34104592e068ee07699c719b52acf691bdfc3066
2025-06-04 15:21:00 -07:00
Treehugger Robot
9e799fe32b Merge "Switch to the new desk after clear all button is clicked in the recent view" into main 2025-06-04 15:17:07 -07:00
Treehugger Robot
3eed388766 Merge "Add missing nullability checks for AbsSwipeUpHandler.mRecentsView" into main 2025-06-04 14:21:53 -07:00
Steven Ng
6c3e08a35e Switch to the new desk after clear all button is clicked in the recent view
In connected display, when the clear all button is clicked, instead of launching home screen, this CL waits for the new desk for the display to be created and then launch to that new desk.

Bug: 417944041
Flag: com.android.window.flags.enable_multiple_desktops_backend
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Test: launch an app in connected display. Go to overview and click clear all. Confirmed the new desk is launched
Test: create 2+ desks in the connected display. Go to overview. Swipe up to remove all desk one by one. Upon the last desk removal, the new desk is launched.
Test: atest NexusLauncherTests:TaplTestsOverviewDesktop
Change-Id: I3399274afd3fd4310fb4b1c1e6916b8386d81aaf
2025-06-04 12:56:43 -07:00
Schneider Victor-Tulias
dc870049c1 Fix IllegalStateException in AbsSwipeUpHandler.onRecentsAnimationStart
Flag: EXEMPT bug fix
Fixes: 420854746
Test: AbsSwipeUpHandlerTestCase
Change-Id: I534d6cb7c6d05395663cd45b0c889095b8aead4a
2025-06-04 14:45:34 -04:00
Schneider Victor-Tulias
053d45170d Add missing nullability checks for AbsSwipeUpHandler.mRecentsView
Flag: EXEMPT bug fix
Fixes: 422239562
Test: AbsSwipeUpHandlerTestCase.testRecentsViewNullability
Change-Id: I0e2ac2d14bf8ee6130e1349d3c776df0c46fe256
2025-06-04 14:05:53 -04:00
Ebru Kurnaz
348921d7a0 Merge "Check both content mode and sys decor flag to get system decoration callbacks from window manager." into main 2025-06-04 08:48:28 -07:00
Pat Manning
afeec5b51f Do not clear offloaded task's icon if in split selection.
We hide the task being split during split selection, and if a config change occurs and we need to re-init the split, we will need the icon still.

Fix: 420543918
Test: Manual.
Flag: EXEMPT Bugfix
Change-Id: Ic4db47633b62b6cbf6b4e66f74912f4c806901e0
2025-06-04 14:04:50 +01:00
Alex Chau
61e96bcf0d Merge "desktop-exploded-view: Add border to desktop contents on hover" into main 2025-06-04 03:36:08 -07:00
Vinay Joglekar
44a5239dfe Merge "Fix blur flash when tap live tile app to launch from overview" into main 2025-06-04 02:15:40 -07:00
Treehugger Robot
c8e81122db Merge "Fix sizing for desktop first taskbar" into main 2025-06-03 21:25:48 -07:00
Toni Barzic
e686dd3d9d Fix sizing for desktop first taskbar
Fixes few instances where taskbar icon layout was calculated incorrectly
for desktop-fist taskbar, assuming that taskbar gets scaled from
transient taskbar sizes to pinned taskbar (which is not the case).
Adds logic to determine whether taskbar supports transition to transient
taskbar to TaskbarFeatureEvaluator, and uses that values in place of
directly checking whether three button nav is enabled.

Bug: 413494672
Flag: com.android.window.flags.enable_desktop_taskbar_on_freeform_displays
Test: Manual - observe the taskbar layout on a desktop device.

Change-Id: Ie0d44ee5be90024ba405f652bbfd888ed22c393b
2025-06-03 21:23:56 +00:00
Andy Wickham
46af1d5939 Merge "Fix workspace blur for non-user controlled animations." into main 2025-06-03 14:03:40 -07:00
Jagrut Desai
12cdeb2fe2 Merge "Fix Hotseat flashing during DW to home transition" into main 2025-06-03 13:06:23 -07:00
Elijah Hewer
69ada2c046 desktop-exploded-view: Add border to desktop contents on hover
Add a border to the TaskContentsView inside a DesktopTaskView when
hovered with the mouse.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: manual
Bug: 353949686
Change-Id: I49d72266f88142b012c0fd0aa32b0b17d50eaff0
2025-06-03 11:16:45 -07:00
Treehugger Robot
a8f28a2edb Merge "Add additional logging to help debug launcher stuck in QS bug" into main 2025-06-03 11:02:00 -07:00
Pat Manning
c0e18cdac6 Merge "Do not animate task launch on back invoked if task is dismissing." into main 2025-06-03 10:22:21 -07:00
Treehugger Robot
bb01ef1d8c Merge "Update the TaskbarLauncherStateController to check the recents window's state" into main 2025-06-03 09:48:29 -07:00
Ebru Kurnaz
b4f2db4051 Check both content mode and sys decor flag to get system decoration callbacks from window manager.
This is needed as there is no guarantee content mode will be enabled everytime sys decor flag is enabled.

Bug: 422070126
Test: NA
Flag: EXEMPT bug fix
Change-Id: I6bb85e320448448bc7ce1756250a81747f0cbb42
2025-06-03 09:22:12 -07:00
Mykola Podolian
431ca06065 Merge "Updated shell IPC methods" into main 2025-06-03 08:50:24 -07:00
Uwais Ashraf
145a32bc8b Add additional logging to help debug launcher stuck in QS bug
Bug: 362324209
Flag: EXEMPT logging
Test: Manual
Change-Id: I03be5a4dd7364653e59d710483cde528240b860b
2025-06-03 08:27:33 -07:00
Pat Manning
700738db04 Do not animate task launch on back invoked if task is dismissing.
Also add check to SpringSet end listener to ensure it only fires once.

Fix: 420232180
Test: Manual.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I87e023c7bf019a22b5d5b91b2ee30547250c9cd1
2025-06-03 15:36:48 +01:00
Schneider Victor-Tulias
f3a66190ef Update the TaskbarLauncherStateController to check the recents window's state
TaskbarLauncherStateController needs to be aware of both Launcher's and recent window's statemanagers to update the taskbar state properly. Adding recents window state checks

Flag: com.android.launcher3.enable_launcher_overview_in_window
Bug: 377678992
Test: pre/post submit
Change-Id: I8b812bec3826f90d63dd710be5093deca726b11d
2025-06-03 07:17:39 -07:00
Vinay Joglekar
11142ae8b7 Fix blur flash when tap live tile app to launch from overview
During transition from live tile app in overview to app, we need to
synchronise the transaction. Transaction should be applied immediately
only when live tile becomes static tile.

Fix: 420918073
Test: Tap on live tile to launch.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I6e0e333d0fe8417e8c8f5d87e5f80fa9b11fdad4
2025-06-03 06:59:17 -07:00
Treehugger Robot
c1b78276cc Merge "Add remove shortcut to long press menu" into main 2025-06-03 01:54:01 -07:00
Treehugger Robot
6bd4a45898 Merge "Don't animate the TaskMenuView close transition." into main 2025-06-02 19:17:35 -07:00
Federico Baron
9290666f24 Add remove shortcut to long press menu
Flag: com.android.launcher3.enable_long_press_remove_shortcut
Test: NexusLauncherImageTests
Bug: 419289205
Change-Id: I44f12a47f48179be36dea8052080fd61fff05357
2025-06-02 17:43:37 -07:00
Sebastián Franco
b11936e0f5 Merge "Moving AllApps device profile variables to their own class" into main 2025-06-02 13:34:10 -07:00
Treehugger Robot
0ff51ee214 Merge "Update alt+tab behaviour for projected mode" into main 2025-06-02 12:57:36 -07:00
Treehugger Robot
0064944109 Merge changes Ie15b4f58,I9b4db285 into main
* changes:
  Add spring animation for newly created desktop
  Add Icon and Button Opacity Fade through for AddDesktopButton
2025-06-02 12:22:55 -07:00