Commit Graph

22041 Commits

Author SHA1 Message Date
Jordan Silva
d2e930bbb7 Fix Chip menu expanding outside the screen
This CL removes isLandscape condition from menu translation that
prevents Comet to translate the menu with split app. The menu needs to
be translated when in split screen mode, regardless of orientation.

Fix: 404549940
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Test: OverviewSplitTaskImageTest
Test: OverviewMenuImageTest
Test: Manual. Instructions in the bug.
Change-Id: I5e4d07a9f1d2e36b847808aec9ae348a7ef78f59
2025-03-18 11:18:55 -07:00
Pat Manning
337b3ea7b0 Merge "Play haptic after dismissal even if no neighbors spring into place." into main 2025-03-18 11:10:16 -07:00
Pat Manning
f3ef4e9961 Merge "Prevent multiple competing dismissals." into main 2025-03-18 11:04:47 -07:00
Liana Kazanova (xWF)
defa140c20 Merge "Revert "Inflate TaskThumbnailViewDeprecated as TaskContentView"" into main 2025-03-18 10:04:13 -07:00
Liana Kazanova (xWF)
1048b2711c Revert "Inflate TaskThumbnailViewDeprecated as TaskContentView"
This reverts commit bba7e8af37.

Reason for revert: DroidMonitor: Potential culprit for http://b/404515699 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: Iadb65f37b9712c3d6e5943847520ca3bd76624c7
2025-03-18 09:26:32 -07:00
Pat Manning
9fdc7032ba Play haptic after dismissal even if no neighbors spring into place.
Currently haptics will play as the neighbors reflow into place, but if none reflow, we also want a haptic to fire.

Fix: 398198796
Test: Manual. Dismiss end task so none move, feel haptic play.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I467a45472992722bcd05ef31cbaeb157441c4931
2025-03-18 15:10:53 +00:00
Treehugger Robot
1f500d3cd3 Merge "Inflate TaskThumbnailViewDeprecated as TaskContentView" into main 2025-03-18 05:35:14 -07:00
Treehugger Robot
e5cebbd9ca Merge "Do not notify desk mode changes on visible desk tasks count changes" into main 2025-03-17 18:29:02 -07:00
Alex Chau
4a60b862e2 Merge "Update scale on TaskView instead for select mode" into main 2025-03-17 13:12:09 -07:00
Treehugger Robot
ab933e6098 Merge "[CD Taskbar] Move DisplayController method calls to BaseTaskbarContext" into main 2025-03-17 12:11:06 -07:00
Shamali Patwa
fedb2319af Merge "Use new PreviewPositionHelper for each GetThumbnailPositionUseCase call" into main 2025-03-17 11:19:13 -07:00
Sam Cackett
bba7e8af37 Inflate TaskThumbnailViewDeprecated as TaskContentView
If the enableRefactorTaskThumbnail is false, then inflate
TaskThumbnailViewDeprecated as TaskContentView so that the behaviour
matches the previous pre-factor behaviour

Fix: 402277471
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: Manual. See bug
Change-Id: Ie62d4d83d0a16d965820d2a218a44478b660a806
2025-03-17 17:45:34 +00:00
Sunny Goyal
d7a1c17988 Merge "Moving LauncherAppWidgetHolder to dagger" into main 2025-03-17 10:42:15 -07:00
Jon Miranda
a3f54bae16 Merge "Relayer taskbar to application_overlay when shade is opened" into main 2025-03-17 09:15:29 -07:00
Orhan Uysal
afd0b905e2 Merge "Temporarily add a null intent check." into main 2025-03-17 09:04:45 -07:00
Shamali P
56dd87a584 Use new PreviewPositionHelper for each GetThumbnailPositionUseCase call
It is now injected via a factory so a new instance is used each time.

Bug: 399641570
Flag: EXEMPT BUGFIX
Test: Unit test
Change-Id: Iee703f0c954c95599c07ceb788edabb0d808abb2
2025-03-17 14:41:53 +00:00
Alex Chau
843a881e7c Update scale on TaskView instead for select mode
- Avoid zooming in RecentsView in Select mode, instead zoom in the selected TaskView only to avoid changing RecentsView's scale and pivot, otherwise when doing home gesture in Select mode RecentseView zoom will be distorted
- Set taskModalness on all TaskViews, so they can fade out while entering Select mode, this avoid janky transitionig of non-selected TaskView appearing during hoem gesture
- Keep overviewGridEnabled true until transitioning out of a RecentsView visible state, so showAsGrid() remains true and the Overview grid won't deform midway through animating
- When leaving Select mode to RecentsView invisible state (e.g. Home), leave taskModalness 1 until the last frame so selected TaskView remains zoomed in until RecentsView is invisible

Fix: 322818393
Test: OverviewTaskSelectImageTest
Test: Repeat with combination of default/fallback, live/static tile, handheld/tablet
1) Swipe up from Overview
2) Swipe up from Select to go Home
3) Backc/cross button to exit Select to Overview
Flag: com.android.launcher3.enable_grid_only_overview

Change-Id: I8fec62315cbd404502852654772edb1d695f1ec6
2025-03-17 14:39:40 +00:00
Sukesh Ram
16e04e84eb [CD Taskbar] Move DisplayController method calls to BaseTaskbarContext
To ensure consistent, controllable Taskbar in Connected Displays Behavior, move all independent calls to the singleton DisplayController's various methods into one place in BaseTaskbarContext, where we have access to the parent context and can override default behaviors of these methods throughout taskbar if in external display.

Flag: EXEMPT not adding new behavior
Bug: 401553128
Test: m
Change-Id: If9efc0cfc18bac3ee75bb64bf5280ea979d1faa2
2025-03-17 03:15:45 -07:00
Massimo Carli
e58dac962c Merge "Add missing Rule for Flags" into main 2025-03-17 03:01:26 -07:00
Treehugger Robot
4772ba9cba Merge "Disabled bubble bar for the connected display." into main 2025-03-16 23:16:39 -07:00
Jon Miranda
1b62b50a9b Relayer taskbar to application_overlay when shade is opened
When we get the sysui flag for shade expanding, take a
snapshot of the TaskbarDragLayer (after hiding three navigation
buttons), and add a View of that snapshot to the TaskbarOverlay
layer, while simultaneously hiding the real Taskbar.

Bug: 343194358
Test: have pinned taskbar, open shade, note taskbar stays behind shade
Flag: com.android.launcher3.enable_taskbar_behind_shade
Change-Id: I0ad9506f34dd4f3aec3796d94cd3d4a914ff67e5
2025-03-16 11:07:21 -07:00
Mady Mellor
3894947741 Merge "Update dragged elevation to use shared value (at 3dp)" into main 2025-03-14 16:10:01 -07:00
Randy Pfohl
b1a0a5706f Merge "Removing displaymanager listener in favor of displayAddSystemDecorations for testing/sysui consistency" into main 2025-03-14 15:18:51 -07:00
Jagrut Desai
56a8bf548f Merge "Taskbar Icon changes" into main 2025-03-14 14:29:08 -07:00
Sunny Goyal
66916cda10 Moving LauncherAppWidgetHolder to dagger
This would allow customizing the widget holder in LauncherPreview

Bug: 361850561
Test: Updated tests and presubmit
Flag: EXEMPT dagger
Change-Id: I32491169188992453693048986c57cb780fdf1d8
2025-03-14 14:19:29 -07:00
Mady Mellor
609f2b3143 Update dragged elevation to use shared value (at 3dp)
- Had to bump elevation of drop target so need to bumpe elevation
  of dragged views

Flag: com.android.wm.shell.enable_bubble_anything
Test: manual / visual - drag a bubble or drag expanded view and observe
                        the drop targets
Bug: 403276099
Change-Id: I15a1deb055c590b1f46261fcc307120fcb685c08
2025-03-14 13:56:29 -07:00
Johannes Gallmann
e7b099efee Merge "Add 200 ms delay for predictive back animation in 3-button-nav" into main 2025-03-14 13:37:37 -07:00
Hongwei Wang
965a1f5f7f Merge "[2/N] Check destination against src aspect ratio" into main 2025-03-14 13:33:26 -07:00
Treehugger Robot
dee6dd8bb7 Merge "Make OverviewCommandHelper commands and OverviewCommandHelperTest display-aware" into main 2025-03-14 13:18:28 -07:00
Jon Miranda
0c762ac84f Merge "Synchronize the app launch and taskbar stash animations." into main 2025-03-14 11:05:08 -07:00
Will Osborn
69a9346b07 Make OverviewCommandHelper commands and OverviewCommandHelperTest display-aware
Test: locally tested on Tangor
Flag: EXEMPT refactor
Bug: 397942185
Change-Id: Ib2c3b2662413d15926215c18421168e93ce2b117
2025-03-14 17:55:20 +00:00
Massimo Carli
61a66dddea Add missing Rule for Flags
The SetFlagsRule was missing in tests.

Flag: EXEMPT Test fix
Fix: 402452969
Test: atest NexusLauncherTests:com.android.quickstep.DesktopSystemShortcutTest

Change-Id: I80e4fc311b173e32e2d85849656b837deb903aeb
2025-03-14 17:05:35 +00:00
Treehugger Robot
d78c8c41b7 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-14 09:49:43 -07:00
Jagrut Desai
4fe0b79fde Taskbar Icon changes
Test: Manual
Bug: 379158656
Flag: com.android.wm.shell.enable_gsf
Change-Id: Ic4ec9a7c634231c2592cfcd6ba6c8f8252c2dd98
2025-03-14 09:26:32 -07:00
Pat Manning
cc973dfdce Prevent multiple competing dismissals.
This brings into line with existing UX prior to the feature.

Fix: 400727071
Test: Manual. Dismiss as quickly as possible.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: Ie3f6f82c3ed4626829f3a61307e73cbdb8a31ceb
2025-03-14 16:11:19 +00:00
Treehugger Robot
0af5880d28 Merge "Revert "Remove DepartingAnimationTarget from BackMotionEvent(2/2)"" into main 2025-03-14 08:59:01 -07:00
Randy Pfohl
b6df25a0e6 Removing displaymanager listener in favor of displayAddSystemDecorations for testing/sysui consistency
Test: built and tested events while connecting disconnect external
display

Flag: com.android.launcher3.enable_launcher_overview_in_window

Bug: 292269949

Change-Id: I5b0b180e47eb62d8cc963076a2ad22a649c1c9cf
2025-03-14 15:42:37 +00:00
minch
c48f662c7d Do not notify desk mode changes on visible desk tasks count changes
1. Trigger `notifyIsInDesktopModeChanged` on
   `visibleDesktopTasksCount` changes only when the multi-desks
   flags are disabled.
2. Make `DesktopVisibilityController.isInDesktopMode` variable
   private and legacy, which should only be used when the multi-desks
   feature is disabled. All the call sites should go to check
   `DesktopVisibilityController.isInDesktopMode(displayId)`, which
    works both with and without the multi-desks feature enabled.

Bug: 402222877
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I291e2be6d99e81b0c918ae7f39c17a8cd4ea0918
2025-03-14 15:21:19 +00:00
Treehugger Robot
64927397af Merge "Fix KQS arrow button padding" into main 2025-03-14 08:14:16 -07:00
Jordan Silva
04dde14527 Merge "Fix app chip split icon position in RTL" into main 2025-03-14 07:27:00 -07:00
Jordan Silva
50a048bc38 Merge "Fix App Chip positioning in Fake Orientation" into main 2025-03-14 07:26:50 -07:00
Wei Sheng Shih
be00793561 Revert "Remove DepartingAnimationTarget from BackMotionEvent(2/2)"
Revert submission 32129017-remove_departing_motion

Reason for revert: b/402422333

Reverted changes: /q/submissionid:32129017-remove_departing_motion

Change-Id: Id3dab47ddac90de8564379ce41cb7943bfb31fa4
2025-03-14 06:23:40 -07:00
Treehugger Robot
520403a822 Merge "Do not apply blur in overview on unsupported devices" into main 2025-03-14 05:50:26 -07:00
Orhan Uysal
bb56cf824b Temporarily add a null intent check.
Due to b/403118101, add temproray null intent check to prevent tests
from failing for longer until we identify why there is task with bunch
of null fields.

Bug: 403118101
Flag: EXEMPT Bug fix
Test: m
Change-Id: I11246c1143d1acbe45133f0e34785818bce3dba9
2025-03-14 12:38:14 +00:00
Jordan Silva
b497f87814 Fix app chip split icon position in RTL
Fix: 403284758
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual, please check b/326377497#comment7.
Test: OverviewImageTest
Test: OverviewSplitTaskImageTest
Change-Id: I217e491355f1221ac1840b2c7c47b1000e1ffe71
2025-03-14 12:01:12 +00:00
Jordan Silva
43ba3e9276 Fix App Chip positioning in Fake Orientation
This CL changes how the layoutDirection of the App Chip is handled and update translations in the PagedViewHandler for the app chip for fake orientation.

- The App Chip was updated to use the device layoutDirection instead of the same of RecentsView. This prevents the app chip being displayed in RTL when the device is LTR and vice-versa.
- It also applies the correct layout direction to `IconAppChipView` and its related views to ensure proper RTL behavior.
- RecentsView now updates layoutDirection for its children when updateChildTaskOrientation is called. This will make sure its children have the the latest and the correct layoutDirection.. Before it was only applied when adding a view (addView).
- In `SeascapePagedViewHandler`, it adjust the gravity for app chip be aligned correctly in Seascape.
- In `GroupedTaskView`, it checks if the device is in RTL to align the app chip correctly for split tasks.

- Multiple test combinations were done to validate this fix, please see table in b/326377497#comment7.

Fix: 326377497
Bug: 403284758
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual, please check b/326377497#comment7.
Test: OverviewImageTest
Test: OverviewSplitTaskImageTest
Change-Id: I8e8050ccf58c3f90718a48773ee7e32ddbc00f13
2025-03-14 12:01:12 +00:00
vinayjoglekar
559f8c514d Do not apply blur in overview on unsupported devices
Bug: 403475392
Test: Manual. Enter overview from app/home.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I280ad08e7d66f664598791d01a58a8d090e48a3f
2025-03-14 16:04:13 +05:30
Will Osborn
53cb4f2b42 Merge "Make TaskAnimationManager per-display" into main 2025-03-14 02:18:29 -07:00
Sukesh Ram
a9b92cb68f Merge "[CD Taskbar] Stop External Taskbar Destruction on Window Close" into main 2025-03-14 00:17:32 -07:00
Toni Barzic
3c07c2156f Fix KQS arrow button padding
The padding values were set to their totals.
They needed to be halved.

Bug: 397975686
Flag: com.android.launcher3.taskbar_overflow
Test: None
Change-Id: Icae56e02fa6082b7f99b9fef265d6220b613d06b
2025-03-14 04:58:38 +00:00