Commit Graph

82627 Commits

Author SHA1 Message Date
Andy Wickham 85ac41bc7f Only ignore All Apps left/right insets on tablets.
This was previously the case, but I think I mistakenly updated this
to include phones with the all_apps_sheet_for_handheld flag at some
point. However, there was also some broken logic with the panel bounds
on phones. panel.getLeft() would be 0 because that's relative to the
container, so we need to do getLeft() + panel.getLeft().

Landscape (camera on left): https://hsv.googleplex.com/5035787895701504
Seascape (camera on right): https://hsv.googleplex.com/6210562886205440
Portrait: https://hsv.googleplex.com/6563945312681984
Tablet: https://hsv.googleplex.com/6704696994562048

Bug: 419235232
Test: See HSVs above compared to before images in the bug
Flag: com.android.launcher3.all_apps_sheet_for_handheld
Change-Id: Id8b6f3367ee94ef22cb917e00518e843553b42d8
2025-05-21 19:23:53 -07:00
Schneider Victor-Tulias 6d532fe59d Fix broken state when tapping nav handle from running app.
When tapping the nav handle from running app, OtherActivityInputConsumer will start the recents window through TaskAnimationManager. The recents window would then typically be closed through the StateManager, however since the state isn't changing, then RecentsWindowManger never actually gets any signal to close the recents window. Added a new callback to fix this flow.

Flag: com.android.launcher3.enable_launcher_overview_in_window
Flag: com.android.launcher3.enable_fallback_overview_in_window
Bug: 377678992
Test: pre/post submit tests. tapped nev handle from a runnign app
Change-Id: If1fe7de195a9a8a98c72629c7904d469a5768d7f
2025-05-21 10:35:11 -07:00
Kevin Lim 5db0796793 Merge "[Multiline] Clean-up multiline flag on Launcher3" into main 2025-05-21 10:23:51 -07:00
Jordan Silva e14014cc88 Merge "Fix task icons sometimes not appearing in recents view" into main 2025-05-21 10:09:00 -07:00
Treehugger Robot 57de0ebf21 Merge "Make sure RecentsWindowManager is created for TaskbarUIController" into main 2025-05-21 09:56:04 -07:00
Helen Cheuk 444161df77 Merge "[Action Corner] Make home action corner irreversible" into main 2025-05-21 09:13:31 -07:00
Treehugger Robot 10b72a252d Merge "Revert "Temporarily revert allowing recents view to reapply load state"" into main 2025-05-21 07:15:41 -07:00
Alex Chau f29a8dd4e2 Make sure RecentsWindowManager is created for TaskbarUIController
Bug: 418965555
Flag: EXEMPT bugfix
Test: local + presubmit

Change-Id: Ib45df9c0f04534cd88a1b2ae1ff4ab49f8999dff
2025-05-21 14:13:20 +00:00
Treehugger Robot 2cc2843f03 Merge "Dismiss task on default display if it is moved to external" into main 2025-05-21 06:45:24 -07:00
helen cheuk 9598e4c78c [Action Corner] Make home action corner irreversible
The go home action for action corner should be irreversible for now.
When home action corner is triggered at homepage, it should just stay at homepage and would not go back to previous task.
Add flag for the reversible behavior for non-desktop mode home action corner. It is to be completed with dekstop mode in later release.

Bug: 397182595
Test: ActionCornerHandlerTest
Flag: com.android.launcher3.enable_reversible_home_action_corner
Change-Id: Ib36581d0d3d81d4a7ff8f8d6265d8d5d5f5872fd
2025-05-21 14:26:01 +01:00
Jordan Silva ea25b86ce1 Fix task icons sometimes not appearing in recents view
- Call setTaskIconVisible(true) at the end of the gesture regardless of `setCurrentTask`.
- Resets the icon visibility when RecentsView resets to make sure the bad state won't get stuck.

Fix: 332744660
Flag: EXEMPT bug fix
Test: Manual test on device
Change-Id: Ie8b86efa4892298f0071ad304a8c77698c306d6a
2025-05-21 04:57:22 -07:00
Kevin Lim f7ce5a06fe [Multiline] Clean-up multiline flag on Launcher3
Bug: b/409605328
Flag: EXEMPT removing multiline_search_bar
Test: Unit tests all passing
Change-Id: Id377b7c99af0d0265102888b8021c0809f53a6b9
2025-05-20 18:52:14 -07:00
Sebastián Franco e010d8f654 Merge "launcher: Remove allow rotation setting from indexable settings" into main 2025-05-20 17:04:02 -07:00
Treehugger Robot 737a52ce07 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-20 16:11:42 -07:00
Treehugger Robot 432a419d4f Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-20 16:11:42 -07:00
Pierre Barbier de Reuille 4ad6e804ec Merge "Create a flag to enable the desktop menu entry on Overview when ready" into main 2025-05-20 15:28:02 -07:00
Treehugger Robot 27312fa26d Merge "Prevent adding duplicate TaskAnimationManager launcher destroyed callbacks" into main 2025-05-20 15:22:24 -07:00
Treehugger Robot ab9921a5d5 Merge "Only update All Apps scrim (panel) when blur state changes." into main 2025-05-20 14:17:39 -07:00
Will Osborn 33f9e2c356 Dismiss task on default display if it is moved to external
https://photos.app.goo.gl/AdvkEkTvQdP2dXA26

Bug: 417451469
Flag: EXEMPT bugfix
Test: Local + presubmit
Change-Id: I2955aaee2b59bffb072330e5ebbfcf6d3d83dc3c
2025-05-20 20:34:15 +00:00
Saumya Prakash 4d4fd45f02 Merge "Modify Gesture nav edu to new UX specs" into main 2025-05-20 11:58:06 -07:00
Sam Cackett 10276b2d76 Merge "Add logs for split screen RemoteAnimationTargets" into main 2025-05-20 09:03:59 -07:00
Pierre Barbier de Reuille 933c5324d0 Create a flag to enable the desktop menu entry on Overview when ready
Bug: 418822736
Flag: com.android.launcher3.enable_desktop_menu_on_secondary_display_bugfix
Test: atest DesktopSystemShortcutTest
Change-Id: I55b6493165f5307d3c247bb604441b093d5e8e9d
2025-05-20 15:55:41 +01:00
Alex Chau cb05c49ff0 Revert "Temporarily revert allowing recents view to reapply load state"
This reverts commit cea90d45a6.

Reason for revert: b/417535264 reland

Bug: 417535264
Change-Id: I8611ec59c9574021a0d925d35ee6523faebd6d18
2025-05-20 07:39:07 -07:00
Shamali Patwa 63469a8150 Merge changes from topic "picker-preview" into main
* changes:
  Add test for widget previews using remote views.
  Add preview for widgets using layout / remote views.
2025-05-20 07:37:36 -07:00
Cosmin Băieș cba51f4023 Merge "Remove canImeRenderGesturalNavButtons and sysprop" into main 2025-05-20 03:41:58 -07:00
Treehugger Robot 9977ef7c2a Merge "Update Empty State to support Blur background" into main 2025-05-20 02:17:40 -07:00
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