Commit Graph

83004 Commits

Author SHA1 Message Date
Jagrut Desai
12cdeb2fe2 Merge "Fix Hotseat flashing during DW to home transition" into main 2025-06-03 13:06:23 -07:00
Adnan Begovic
b00e10d899 launcher3: Change promise icon id key to not be backed up.
LauncherPrefs wrapper adds a backup when using backedUpItem for promise icon ids.
Disable backup and restore for this preference as it could cause unwanted situations

Bug: 419426642
Test: None yet
Flag: EXEMPT Bug fix
Change-Id: I4cfef8c587b951ee6b4753e5f2e2a45409294ef3
2025-06-03 12:49:37 -07:00
Adnan Begovic
0e8be78021 launcher3: Handle case where install session could be invalid.
If the install session comes back as invalid, we can fail to add
a promise icon which leads to icons not showing up on the workspace.

Bug: 419426642
Test: None yet
Flag: EXEMPT Bug fix
Change-Id: I592948eb2b60c2249bb5b141d499d1d5ea01aebc
2025-06-03 12:48:54 -07:00
Treehugger Robot
6dcc0a10f3 Merge "desktop-exploded-view: Add hover and press support for the close button" into main 2025-06-03 12:30:59 -07:00
Sunny Goyal
8736534932 Using a single preview sandbox perview instead of recreating it everytime
> Reusing the model binding system instead of using a custom implementation
> Reusing the existing grid update API for previews instead of custom implementation
> Any new functionality is protected via the same flag as the grid update path

Bug: 420997234
Bug: 397782741
Flag: EXEMPT refactor
Test: atest GridPreviewTest

Change-Id: Iaf8f34568618f98cc11138ce3fa327707c5f6f1a
2025-06-03 11:40:05 -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
Andrew Cole
371e8141b2 Merge "Removing screen record from the test because the issue is now fixed" into main 2025-06-03 10:53:42 -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
Matthew Mourgos
606677a48a Launch home intent on workspace click/tap
When an emtpy area of the workspace is tapped/clicked, and tasks are
shown on top of the home screen, launch an Intent to bring the Home
activity to the front. This behavior is intended for the desktop form
factor.

Bug: 419565810
Test: Manual and onWorkspaceTouch_whenHomeBehindDesktop_launchesHomeIntent
Flag: com.android.window.flags.show_home_behind_desktop
Change-Id: Id66e7700873db8d11addf2b5283b4ac126acde5f
2025-06-03 09:55:53 -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
Xiaoqian Dai
817f5c3589 desktop-exploded-view: Add hover and press support for the close button
Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 421051864
Change-Id: I75601c738e6f82275240a7e4265f9b7940d3dc7f
2025-06-03 16:45:54 +00: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
Bill Yi
0c687f92c1 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-06-03 09:12:07 -07:00
Will Osborn
15041a369d Add flag enable_simultaneous_overview_trigger_on_extended_desktop
Test: None
Bug: 421128035
Flag: com.android.launcher3.enable_simultaneous_overview_trigger_on_extended_desktop

Change-Id: I1a54ea49caf3e2dd3449b77bbd744afe682e2fe1
2025-06-03 15:52:03 +00: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
Shamali Patwa
f8d3d932d3 Override the picker theme colors to map to resources in launcher
Text styles at the moment uses default tokens, but can be replaced in follow up.

Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: I91764c5aca3daa729c89882f653bb0f088248170
2025-06-03 06:00:40 -07:00
Shamali Patwa
bdc7e215b7 Update picker tests to wrap content with widget picker theme.
Bug: 408283627
Flag: EXEMPT independent module
Test: Not applicable
Change-Id: Ied4f4ddca313262bc125b9fb98e5f2670333375b
2025-06-03 06:00:35 -07:00
Shamali Patwa
ceccd4a155 Replace the color / text style tokens with the newly defined picker specific tokens
Also minor adjustments on where color is applied vs clipping / scroll modifiers are applied.

Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: Ie5270f27d6cb8a6fc1984d6421937b1d8763aee9
2025-06-03 06:00:26 -07:00
Treehugger Robot
c1b78276cc Merge "Add remove shortcut to long press menu" into main 2025-06-03 01:54:01 -07:00
Andrew Cole
c98b19468e Removing screen record from the test because the issue is now fixed
Bug: 381918059
Test: TEST_ONLY
Flag: TEST_ONLY
Change-Id: I118f6eafa3c8f30161bc7a71649560cc30f99f9c
2025-06-03 00:44:46 -07:00
Shamali Patwa
8f9d26d3ee Merge "Move host constraint builder logic to the concrete wrapper implementation." into main 2025-06-03 00:28:40 -07:00
Treehugger Robot
7860bd9db3 Merge "Adding interfaces for long press menu updates" into main 2025-06-02 23:58:31 -07:00
Shamali Patwa
a1c4ff596d Move host constraint builder logic to the concrete wrapper implementation.
Fix build.


Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: Ic15eb61eaa76ee9eeb1680dfe90cb89442f7d159
2025-06-02 22:34:00 -07:00
Shamali Patwa
7423dafef0 Define composition locals for configuring color / font tokens specific to widget picker.
This is so, launcher can map it to existing resource tokens enabling
launchers to easily override resources.

Within picker module, we define a default implementation using material
tokens that can be used as reference for which colors are ideal for
specific picker tokens.

Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: I9c3a6118942114d5a8481f05a6710d8161d56bd7
2025-06-02 21:27:25 -07:00
Shamali Patwa
9e604fbe6e Merge changes from topic "picker-a-dnd" into main
* changes:
  Listen to and handle drag and drop for homescreen and lockscreen widgets in widget picker activity wrapper.
  Implement tap-to-add and drag and drop in the compose widget picker
  Pass down the widget interaction callback and flag on whether to support drag shadow
  Add widget picker drag and add item listeners.
2025-06-02 21:21:18 -07:00
Treehugger Robot
6bd4a45898 Merge "Don't animate the TaskMenuView close transition." into main 2025-06-02 19:17:35 -07:00
Shamali Patwa
622eb1d043 Listen to and handle drag and drop for homescreen and lockscreen widgets in widget picker activity wrapper.
Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: See demo in comments.
Change-Id: Idcc94d35ca02cb31ce191bc99b5e21f5f0a395c4
2025-06-02 18:47:08 -07:00
Shamali Patwa
acc353194f Implement tap-to-add and drag and drop in the compose widget picker
- adds the logic to toggle add button on tapping preview / details
- adds logic to handle add button click
- adds logic to start drag and drop on long press.

The compose's drag and drop handles drag and drop itself, but in this case we need custom interaction to be able to support calling back listeners / setting result for activity etc. So, we use custom logic with android view.


Bug: 408283627
Flag: EXEMPT independent module
Test: See demo
Change-Id: Ie13c919248f8bdd20f90c4eb4a0bec266aedde27
2025-06-02 18:47:01 -07:00
Shamali Patwa
6710f2faf2 Pass down the widget interaction callback and flag on whether to support drag shadow
Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: N/A
Change-Id: I8d04cb3b0e52c202bf6223e0b0e2e10a4ca6fdb8
2025-06-02 18:46:54 -07:00
Shamali Patwa
5a02a996c6 Add widget picker drag and add item listeners.
These handle those two operations for home screen when widget picker is
opened as a separate activity.

Bug: 408283627
Flag: com.android.launcher3.enable_widget_picker_refactor
Test: Not applicable.
Test: See demo in comments
Change-Id: I37f626b57610379a8af4e7a229406ed0656806c2
2025-06-02 18:46:45 -07:00
Federico Baron
fc68cd402a Adding interfaces for long press menu updates
Bug: 416087474
Test: EXEMPT adding interfaces only
Flag: EXEMPT adding interfaces only
Change-Id: I50d73b655622a249ce293e1dc456b6a2a27fe810
2025-06-02 17:44:13 -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
Bill Yi
7370ed82d7 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I451d8c699e7352df0a8851d85e242d8841e9e3ab
2025-06-02 23:19:40 +00:00
Shamali Patwa
a115ef8523 Merge "Listen to sizing changes to make rotation of picker smoother for widget picker activity" into main 2025-06-02 15:21:18 -07:00
Brian Isganitis
a2c2cf6c26 Use displayId from sandbox context.
This matches the default display.

Flag: TEST_ONLY
Test: TaskbarOverflowTest
Bug: 415326979
Change-Id: If8edf46c16cd10105587ced5dfff316d08bbf2fd
2025-06-02 17:06:28 -04: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
Andy Wickham
eeaebacf66 Merge "Fix reverse interpolation when closing All Apps." into main 2025-06-02 12:57:02 -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
Treehugger Robot
70cb18792b Merge "Change TTV splash and default background to transparent" into main 2025-06-02 12:18:15 -07:00
Treehugger Robot
cb6b287f16 Merge "Fix TaskbarAutohideSuspendControllerTest with grant_manage_key_gestures_to_recents enabled" into main 2025-06-02 12:13:45 -07:00
Sunny Goyal
81207acbbf Merge "Fixing widget size incorreectly updated during preview" into main 2025-06-02 12:09:51 -07:00
Jagrut Desai
b5d2f3ee7f Fix Hotseat flashing during DW to home transition
Problem: upon exiting the deesktop mode we were getting change in recents tasks which we were commiting to ui and that resulted in hotseat flashing.

Solution: since layout transition is only in use while we are in desktop windowing mode, we will only need to change icon layout bound while we are in desktop mode and not when we are exiting.

Test: Manual, Presubmit
Bug: 417696108
Bug: 415700104
Flag: EXEMPT bugfix
Change-Id: Ibcf65df49e7b48312a27d2750d3d0c6c5d392006
2025-06-02 10:30:58 -07:00
Jon Miranda
33ce4677e5 Merge "Update taskbar icon alpha in pinned taskbar animation if not final value." into main 2025-06-02 10:01:26 -07:00
Sunny Goyal
f6b98ada0d Fixing widget size incorreectly updated during preview
Bug: 408934352
Bug: 228328759
Flag: EXEMPT bugfix
Test: Manually verified
Change-Id: Ie69e67cfaee6231da3971323ae98d2b3ab514c0d
2025-06-02 09:40:35 -07:00