Commit Graph

83004 Commits

Author SHA1 Message Date
Sam Cackett
544b511aa5 Add logs for split screen RemoteAnimationTargets
Crash happened because the split config taskId couldn't be found in the
list of remote targets, however I can't reproduce this, so adding
additional logging in case it happens again

Fix: 411897545
Flag: EXEMPT. Bugfix
Test: N/A. Logs
Change-Id: Id6ad6f5dc94aa904e1ea89f3ec59cdcd4114ec73
2025-05-20 09:53:23 +01:00
Treehugger Robot
fe134675be Merge "desktop-exploded-view: Fix the hierarchy with the header" into main 2025-05-19 19:39:05 -07:00
Andy Wickham
dc681e83e7 Only update All Apps scrim (panel) when blur state changes.
Previously we updated many other things, such as the buttons and RV
decorators, but the latest UX guidance is to use the same colors
when blurs are enabled or disabled, other than the panel color.

Note: When Overview blur is enabled, the activity is recreated and
this change is redundant. So this is only done if that flag is off.

Demo with home and taskbar all apps (toggling blur with adb):
https://drive.google.com/file/d/1HzveExKpAERxMVdu7JXQSYeGRwaBNR4_/view?usp=sharing&resourcekey=0-l-dGWOS6aCQjj2KStvwySA

Fix: 413229346
Flag: com.android.launcher3.all_apps_blur
Test: Manual with battery saver and `adb shell wm disable-blur 1` / 0
Change-Id: I55c9b46f0999c574c29a6ac7ae557b1e30d91d15
2025-05-19 19:20:34 -07:00
Saumya Prakash
0c6c1d7309 Modify Gesture nav edu to new UX specs
This change adapts the "Done" button in the gesture navigation tutorial
according to new UX specs. Specifically, the button is wider and may
have a different font according to theme.

Fix: 416144733
Test: Run the gesture navigation tutorial and observe the done button
Flag: EXEMPT bugfix
Change-Id: I4732a21c76e5a0e95433a211cd747cb36aaeaa4d
2025-05-19 23:33:32 +00:00
Andy Wickham
982b08ede0 Merge "Fix All Apps interpolators and blur." into main 2025-05-19 15:11:00 -07:00
Adnan Begovic
0a4a3e13c4 Merge "launcher3: Ensure workspace visibility after scaling animation is done" into main 2025-05-19 13:41:24 -07:00
Shamali Patwa
0b3a0df76a Add test for widget previews using remote views.
Bug: 408283627
Flag: EXEMPT independent module
Test: WidgetsGridScreenshotTest:widgetsGrid_remoteViews
Change-Id: I4ce8eb92269af13207180e50793e65e23958cd00
2025-05-19 13:12:10 -07:00
Shamali P
4d7992617b Add preview for widgets using layout / remote views.
Bug: 408283627
Flag: EXEMPT independent module
Test: WidgetsGridScreenshotTest:widgetsGrid_remoteViews
Change-Id: I70dd1438d12729fb85bead5ffdacb4fbc26fb29c
2025-05-19 13:12:02 -07:00
Bill Yi
13bf828a27 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9b8d0ca663aeb20227f2b5b55949a57e3de317c4
2025-05-19 19:25:56 +00:00
Bill Yi
2f0de7f663 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ie1ca16291c4c1b3624d6d30a66f7d1a5ae2f674b
2025-05-19 19:24:54 +00:00
Treehugger Robot
12927a055c Merge "launcher3: Add logcat event for launcher ready" into main 2025-05-19 12:06:56 -07:00
Shamali Patwa
c00cd87eb1 Merge "Disable the flaky compose screenshot test" into main 2025-05-19 10:51:35 -07:00
Adnan Begovic
07a95ff14d launcher3: Ensure workspace visibility after scaling animation is done
- Using setFloat instead of setViewAlpha for animation. The difference between setViewAlpha
and setFloat is that the latter will flip the view visibility as a short circuit of its
implementation. Moving to setFloat ensures that we only mutate the alpha values themselves.

Bug: 414949943
Flag: EXEMPT Bug fix
Tested: Manually, simulated
Change-Id: Id0152ac4780568dd31224df8dcea5c7ad9d309d8
2025-05-19 10:28:00 -07:00
Jordan Silva
24a66b740d Merge "Revert "Add "PlatformComposeCore" from SystemUI to use theming and common compose libs."" into main 2025-05-19 10:05:20 -07:00
Jordan Silva
5cace2d01b Revert "Add "PlatformComposeCore" from SystemUI to use theming and common compose libs."
This reverts commit 3551983a01.

Reason for revert:
- PlatformComposeCore uses PlatformAnimationLib that requires min_sdk_version: "33". Launcher has minSdkVersion 31 at this moment.
- Error during build: uses-sdk:minSdkVersion 33 cannot be different than version Baklava declared in library
- Reverting this CL to prevent build breaks when Compose is enabled.

Change-Id: Ia8436338c9c547bd638796f331ae9f77977d0f84
2025-05-19 09:56:51 -07:00
Treehugger Robot
496de611cd Merge "Change "Close" menu shortcut label to "Clear" in Overview" into main 2025-05-19 09:18:43 -07:00
vinayjoglekar
c66cc78eca Update Empty State to support Blur background
Updated icon and text font as well as scrim values to make the text and
icon visible in both themes and different wallpapers.

Fix: 408437743
Test: Go to overview in empty state(no tasks)
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: Ic76d25f4a70bffa402950fc4c3c3fade32c66c2b
2025-05-19 15:48:24 +01:00
Shamali Patwa
6cea97c382 Disable the flaky compose screenshot test
There seems to be some flakiness with fonts; while I figure it out,
disabling the tests.

Bug: 418064758
Flag: EXEMPT test
Test: Not applicable.
Change-Id: I4ff19db8a18c76814a9af0d0589f1a2aa90d68d1
2025-05-19 07:06:25 -07:00
Alex Chau
13d1b07304 Merge "Reland "Recreate Launcher activity when blur enabled changes"" into main 2025-05-19 07:03:27 -07:00
Treehugger Robot
34b37ff825 Merge "Revert "Add temp logging to select task"" into main 2025-05-19 05:59:54 -07:00
Treehugger Robot
096352d567 Merge "Improve app to home animation blur" into main 2025-05-19 05:42:24 -07:00
Treehugger Robot
92dbe3dffc Merge "Add "PlatformComposeCore" from SystemUI to use theming and common compose libs." into main 2025-05-19 04:42:31 -07:00
Treehugger Robot
5ae4fb14f4 Merge "Wait for all springs to finish before running end snapping and relayout." into main 2025-05-19 03:47:48 -07:00
Alex Chau
64d347259f Revert "Add temp logging to select task"
Revert submission 33469527-b/407815700

Reason for revert: logs no longer needed
Reverted changes: /q/submissionid:33469527-b/407815700
Bug; 407815700

Change-Id: Ic48e54e8247a672f763bb3b3bbe4c16aef9b6322
2025-05-19 03:26:29 -07:00
Jordan Silva
3551983a01 Add "PlatformComposeCore" from SystemUI to use theming and common compose libs.
Fix: 400448881
Flag: EXEMPT build flag: release_enable_compose_in_launcher.
Test: Manual
Change-Id: I20c417ff6bc97194b9f84b6a5e5a642b7ad42719
2025-05-19 03:07:33 -07:00
Sam Cackett
5bf67401f6 Change "Close" menu shortcut label to "Clear" in Overview
Fix: 413764920
Flag: EXEMPT. Bugfix
Test: Manual. Open recents, tap menu, "Close" should now be "Clear"
Change-Id: Ic727ae7dedf23af65a382e0c7bfe455653865819
2025-05-19 09:23:41 +01:00
Andy Wickham
15ce89129d Improve app to home animation blur
- Add a blur layer to the Scaling Workspace Reveal to have a smooth
  blur transition during animation
    - As part of this, disable blur from DepthController (but still
      use it for depth to match workspace scale)
    - This mirrors the approach in LauncherBackAnimationController
- Use a snappier interpolator for the blur portion (666ms, emphasized)
- Reduce the alpha of floating view during animation, to reduce the
  blur effect during the morph
- Increase the cross fade duration of the App Widget to App reveal

Demo video with various widgets and apps:
https://drive.google.com/file/d/1fYJc-TPAEltqParM957NMYbRe2Gn5OgJ/view?usp=sharing&resourcekey=0-AGiL7sqLNXDcNsY-qOzzYQ

Note: this is sort of a different approach to ag/33537973 without the
underlying refactor necessary.

Bug: 417269110
Test: Manual (see video)
Flag: com.android.launcher3.enable_scaling_reveal_home_animation
Change-Id: I2bb6c0114d42af7ed802fbcae03655befe19aa7e
2025-05-18 16:51:46 -07:00
Sebastian Franco
52c77ba8c2 launcher: Remove allow rotation setting from indexable settings
Fix: 407675825
Flag: com.android.launcher3.one_grid_specs
Test: SettingsIndexablePreferenceKeysTest
Change-Id: I5ba3df68c375cf00a604e3b30a47f28acc91165d
2025-05-18 11:08:05 -07:00
Brandon Dayauon
123fba5790 Merge "Handle case where PS animation method may be called while running" into main 2025-05-16 23:00:20 -07:00
Mykola Podolian
9e4b44afcd Merge changes from topic "remove_ipc" into main
* changes:
  [5/5] Removed unused IPC call.
  [4/5] Cover DragToBubbleController with tests.
  [3/5] Implement DragToBubbleController.
  [2/5] Hook up DragToBubbleController and prepare launcher to use it.
  [1/5] Added DragToBubbleController
2025-05-16 16:01:03 -07:00
Mykola Podolian
bbd1e2e6ad Merge "Fixed issue with expanded view incorrect position." into main 2025-05-16 15:33:33 -07:00
Xiaoqian Dai
bc84ada5e3 desktop-exploded-view: Fix the hierarchy with the header
Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: 417776150

Change-Id: Ia9272801f2bb5a8e67b2bc69d5df8c4227f7a11a
2025-05-16 21:44:26 +00:00
Vadim Tryshev
a3e63d1e20 Merge "Skip all tests after a test times out" into main 2025-05-16 14:06:56 -07:00
Shamali Patwa
b7b5e60d9f Merge "Pass device profile as constructor arg to DatabaseWidgetPreviewLoader" into main 2025-05-16 14:06:39 -07:00
Sebastian Franco
57da21d3c4 launcher: Add e2e quickstep tests to NexusLauncherE2ETests
The test target apk will remain commented until we fininsh adding
all the tests there.

Bug: 324261526
Flag: EXEMPT test only
Test: atest NexusLauncherE2ETests
Change-Id: I989c85baf87cfb15eca817f0c725968dedf015ce
2025-05-16 21:03:03 +00:00
Shamali Patwa
35c051001c Merge "Centralize all entry points for widget picker" into main 2025-05-16 13:41:26 -07:00
Treehugger Robot
2864b7820f Merge "Do not animate background when launching from all apps or home." into main 2025-05-16 13:40:06 -07:00
Treehugger Robot
fae0eb3858 Merge "Add trace to getRecentTasks" into main 2025-05-16 12:49:28 -07:00
Schneider Victor-Tulias
2e6148a430 Prevent adding duplicate TaskAnimationManager launcher destroyed callbacks
Flag: EXEMPT code cleanup
Bug: 416536400
Test: TaskAnimationManagerTest; ran test with and without change
Change-Id: I8bdee3adeeca07e386f3058910d5e2160359f7e9
2025-05-16 15:40:46 -04:00
Treehugger Robot
64a6563d14 Merge "Temporarily revert allowing recents view to reapply load state" into main 2025-05-16 12:28:19 -07:00
Brandon Dayauon
fa87e4d470 Handle case where PS animation method may be called while running
I suspect the animation may be called while a current animation running. Should be using the mAnimatorSet pattern anyways.

bug: 414369872
Test: manually -presubmit ensured current animation doesn't change
Flag: EXEMPT bug fix
Change-Id: Ieeda50026cda656579c60d92f35f085a169eb18a
2025-05-16 11:51:46 -07:00
Shamali Patwa
e10f5d8891 Merge "Dismiss widget picker activity on lock" into main 2025-05-16 11:51:02 -07:00
Shamali P
4cb6ff3838 Pass device profile as constructor arg to DatabaseWidgetPreviewLoader
This is so, we can use it with compose, and let caller pass the needed
dependencies. May also convert to dagger in
 followup

Bug: 408283627
Flag: EXEMPT BUGFIX
Test: N/A
Change-Id: I9b04011ec2592df3bd02bd74ec4889eb05928e7f
2025-05-16 11:47:18 -07:00
mpodolian
94d2ce7587 [5/5] Removed unused IPC call.
Removed an IPC call to the shell that was introduced to display the
expanded view drop target.

Bug: 411506181
Flag: com.android.wm.shell.enable_create_any_bubble
Test: DragToBubbleControllerTest
Change-Id: Ief762d29051d9fe32dc3956903146655509162f6
2025-05-16 11:34:02 -07:00
mpodolian
8499319bc2 [4/5] Cover DragToBubbleController with tests.
Implement tests that check DragToBubbleController public API

Bug: 411506181
Flag: com.android.wm.shell.enable_create_any_bubble
Test: DragToBubbleController.kt
Change-Id: I48fe5f45921fbedbe0f1921dfd21e9ecb14406bc
2025-05-16 11:33:52 -07:00
Pat Manning
e229b40329 Wait for all springs to finish before running end snapping and relayout.
- Adds a SpringSet to track all running springs.
- Rearranges the code into blocks: end runnable, reflow, dismiss, neighbor bounce, etc.
- Renames all instances of draggedTaskView to dismissedTaskView for consistency
- To stop blocking touch earlier, run grid end translation without waiting for the neighbor bouncing to finish.
- Update TAPL split screen launching logic to wait for dismiss animation to end.

Fix: 415327465
Test: TaplTestsQuickstep.
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I59ade102e35e3528971907e898dac9555c6de796
2025-05-16 19:10:00 +01:00
Shamali Patwa
c67a6776ec Merge "Add a new flag for widget picker refactor" into main 2025-05-16 10:35:56 -07:00
mpodolian
5b80c31380 [3/5] Implement DragToBubbleController.
Implement DragToBubbleController internal logic that utilises
DropTargetManager to show drop targets for the bubble bar drop zones.

Bug: 411506181
Flag: com.android.wm.shell.enable_create_any_bubble
Test: Manual. Go to overview screen and drag app icons from the taskbar
over the bubble bar

Change-Id: I844151c5e11f237c475d8a26a7784c5662dad658
2025-05-16 10:35:05 -07:00
mpodolian
86f7a230f8 [2/5] Hook up DragToBubbleController and prepare launcher to use it.
Updated DragController logic to set touch event XY coordinates if there
is no view returned by the DropTarget. Added wait call for all drop
targets views removed to the
TaskbarActivityContext#onDragEndOrViewRemoved() method.

Bug: 411506181
Flag: com.android.wm.shell.enable_create_any_bubble
Test: build launcher
Change-Id: Ie97b08f22ae8dc34bd9f4e3738704e4fc90345bb
2025-05-16 10:34:55 -07:00
Alex Chau
8847a61e5f Add trace to getRecentTasks
Bug: 417535264
Test: presubmit
Flag: EXEMPT bug fix
Change-Id: I0ec7460bec6784716c231f03342215ee4fe34331
2025-05-16 18:09:36 +01:00