Commit Graph

81197 Commits

Author SHA1 Message Date
Mykola Podolian 6ddfa5dfd5 Drag and drop from the search view on the overview screen.
When the bubble bar is stashed and an icon is dragged from the search
grid towards it, the bubble bar should be un-stashed. Conversely, if the
icon is dragged to the opposite location of the stashed bubble bar, the
handle should teleport out, and the collapsed bubble bar should
teleport in.
This change implements logic that addresses this behavior.

Bug: 399678274
Test: Manual. Drag and drop application icons from the search grid to
the bubble bar drop areas.
Flag: com.android.wm.shell.enable_create_any_bubble

Change-Id: Ief9ef3e5c24f8199b2812fd0adf63ae3f6cf8f32
2025-03-20 09:39:35 -07:00
Treehugger Robot 3a4595c207 Merge "Replace the resource flag to be used for google sans flex font changes" into main 2025-03-15 00:03:35 -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
Treehugger Robot 86045eadd7 Merge "Making GridCustomizatonProxy extendible" into main 2025-03-14 14:05:58 -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
Stefan Andonian 30d93a5e74 Replace the resource flag to be used for google sans flex font changes
This new flag is going to be a bug fix flag for easier process
requirements.

Bug: 393609690
Test: Verified compilation worked well and font actually built
successfully in both gradle and make.
Flag: com.android.launcher3.gsf_res

Change-Id: Ic94e52e7fa58efb20fd867cfc661d6f7341fa4ef
2025-03-14 13:50:42 -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
Treehugger Robot d78c8c41b7 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-14 09:49:43 -07:00
Treehugger Robot 8fb039a5ec Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-14 09:49:43 -07:00
Treehugger Robot ffde6fdec8 Merge "Add logging for each migration type" into main 2025-03-14 09:31:34 -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
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
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
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
Helen Cheuk 8b408e4767 Merge "Check null when getting drop view in DragController" into main 2025-03-14 04:05:23 -07: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
Sunny Goyal 370eabf534 Merge "Making ModelDbController injectable" into main 2025-03-13 23:20:17 -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
Bill Yi e5b2bce884 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1c3d25c35c3b09d589085ec179026270db502fb7
2025-03-13 21:49:10 -07:00
Bill Yi e6ebc9cedc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I47cdfafd3aa21f5c17871ed13de4a41ebb004cce
2025-03-13 21:48:20 -07:00
Min Chen 3956f310c0 Merge "Get displayId from DesktopTask for DesktopTaskView" into main 2025-03-13 21:05:28 -07:00
Federico Baron 3da182844d Add logging for each migration type
Flag: EXEMPT logging
Test: n/a
Bug: 393175684
Change-Id: Idfa551cb1e83c3c3bce498b6986035460798b93b
2025-03-14 02:54:31 +00:00
Sukesh Ram dca6b4da8b [CD Taskbar] Stop External Taskbar Destruction on Window Close
When all windows on external taskbar are closed, exit desktop mode is trigggered. We stop this signal from destroying the external taskbar. This is because we want to be in desktop mode as long as we are connected to a non-mirroring display.

Flag: com.android.window.flags.enable_taskbar_connected_displays
Bug: 401553128
Test: m
Change-Id: I23b61172bb13f1377c4532a56e7838fbe2140f20
2025-03-13 16:15:08 -07:00
Hongwei Wang 701101b736 [2/N] Check destination against src aspect ratio
This is the fix on Launcher side. There is a counterpart on
SystemUI side.

PictureInPictureParams#isSameAspectRatio has 1-pixel allowance when
comparing a given Rect against the aspect ratio.

When we compare the source rect hint against the aspect ratio inferred
from the destination bounds, the float error during the destination
bounds calculation is amped. For instance:

- Source rect hint: Rect(152, 0 - 2072, 1080), 1920x1080
- Destination bounds: Rect(440, 1218 - 1038, 1554), 598x336

When do the isSameAspectRatio

- If we fix the height=1080, expected width=1922, it's 2 pixels off
- If we fix the width=1920, expected height=1078, it's 2 pixels off

The check would fail. Instead, in this change, we compare the
destination bounds against the aspect ratio from the source rect hint.
For the same source rect hint and destination bounds

- If we fix the height=336, expected width=597, it's 1 pixel off
- If we fix the width=598, expect height=336, it's 0 pixel off

Note: this change applies to both PiP1 and PiP2

Flag: EXEMPT bugfix
Bug: 402190788
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/cUXaoJxzXDdKdSyqkQZOG1
Test: Swipe to enter PiP from landscape playback, see also Video
Change-Id: I8f06f269784c72258f9b23f2beafbd5d0926bb73
2025-03-13 16:10:36 -07:00
minch 68e116e79f Get displayId from DesktopTask for DesktopTaskView
Bug: 401011627
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: Added a test in RecentTasksListTest
Change-Id: I21164de812d57b79cd84370bbf0426268c4b645d
2025-03-13 22:24:22 +00:00
Ana Salazar Maldonado 4b40d05ebb Merge "Migrate desktop_form_factor to Launcher3" into main 2025-03-13 13:14:07 -07:00
Treehugger Robot 85db442ef1 Merge "Handle visibility of AddDesktopButton for overview/quickswitch" into main 2025-03-13 13:13:46 -07:00
Treehugger Robot d7c4922ddf Merge "Enable Perceptible tasks when in desktop mode." into main 2025-03-13 13:09:40 -07:00
Treehugger Robot f2ceba9ba7 Merge "Removing listeners from FolderInfo" into main 2025-03-13 12:48:34 -07:00
Treehugger Robot bfd041a055 Merge "Spring neighboring tasks on dismiss reflow." into main 2025-03-13 12:47:19 -07:00
Treehugger Robot 9b577bc9b5 Merge "Mark KQS arrow strings translatable" into main 2025-03-13 12:41:19 -07:00
Treehugger Robot c23c94520b Merge "Implementation of overview background blur" into main 2025-03-13 12:02:43 -07:00
Ana Salazar Maldonado fa6c0babc8 Migrate desktop_form_factor to Launcher3
Bug: 391958794
Flag: com.android.launcher3.enable_scalability_for_desktop_experience
Test: Verified manually
Change-Id: I7002e04eaf980e5037a6d33935457cb2d26cf5cd
2025-03-13 11:33:36 -07:00
Sunny Goyal 25f5c7e761 Making ModelDbController injectable
Bug: 361850561
Test: Updated tests
Flag: EXEMPT dagger
Change-Id: Ie600469476ce5eb60813a3c8b57b9445fcf82c24
2025-03-13 11:23:23 -07:00
Mady Mellor 6e9cc31ba2 Merge "Update flyout text view to use a diff font" into main 2025-03-13 11:21:25 -07:00
Treehugger Robot d8eac67aad Merge "Associate ResetGestureInputConsumer and NO_OP input consumers with display IDs" into main 2025-03-13 11:19:33 -07:00