Commit Graph

82514 Commits

Author SHA1 Message Date
Sebastian Franco 376d628859 Prevent recents rotation animation if we are in Fixed Landscape
When in this mode we can let the system rotate the device. In other
cases we have a fake rotation and so we need to manually rotate.

Fix: 401484242
Flag: com.android.launcher3.one_grid_specs
Test: Manual testing
Change-Id: I74e5cb0363a34edb69b39f9a387b9020116d5632
2025-05-22 11:46:57 -07:00
Surbhi Kadam 550dbb0021 Merge "Launcher3: send token with early wakeup request to SurfaceFlinger" into main 2025-05-15 10:28:36 -07:00
Ebru Kurnaz 6ddc86dc7e Merge "Use wm callbacks for sys decor in Launcher instead of command queue." into main 2025-05-15 09:44:19 -07:00
Mykola Podolian 4703fef886 Merge "Reset -1 page progress when leaving it" into main 2025-05-15 09:37:10 -07:00
Jordan Silva 17b5284033 Merge "Clean-up TaskViewIcon to remove duplicated View methods." into main 2025-05-15 08:40:00 -07:00
Sebastián Franco 50c607d4d4 Merge "launcher: Get rid of redundant folders like testing when we have the test folder" into main 2025-05-15 08:29:45 -07:00
Tony Wickham cb535f5330 Merge "Call updateOverivewDragState when mIsAnimatingToLauncher changes" into main 2025-05-15 08:11:56 -07:00
Sam Cackett 86957d29bc Merge "Switch to screenshot before animating split select" into main 2025-05-15 07:30:28 -07:00
Ebru Kurnaz 88185ac745 Use wm callbacks for sys decor in Launcher instead of command queue.
Bug: 412615955
Test: DisplayRepositoryTest
Flag: com.android.window.flags.enable_sys_decors_callbacks_via_wm
Change-Id: I42865b2b9169e99e35e09e239f6a1b3e455b7894
2025-05-15 13:39:33 +00:00
Alex Chau 6564f33184 Merge "Remove debug logs on a closed bug" into main 2025-05-15 06:37:49 -07:00
Alex Chau b7dd7bf1e0 Merge "Recreate Launcher activity when blur enabled changes" into main 2025-05-15 06:07:58 -07:00
Jordan Silva 18885ee426 Clean-up TaskViewIcon to remove duplicated View methods.
This change simplifies the TaskViewIcon interface by inheriting directly from View, removing redundant method declarations like `getWidth()`, `getHeight()`, `setOnClickListener()`, etc.

Affected classes are updated to use the new interface, primarily by calling `asView()` to access the underlying View methods where necessary.

Bug: 415265678
Flag: com.android.launcher3.enable_overview_icon_menu
Test: Manual.
Change-Id: I281f495116a841338075d0ff35effd19316aaeec
2025-05-15 13:07:00 +01:00
Sam Cackett 7ab01c539e Switch to screenshot before animating split select
Fixes an issue where the live tile would flicker and briefly show the
background, then switch to screenshot and animate

Fix: 399847132
Flag: EXEMPT. Bugfix
Test: Manual. See bug
Change-Id: I373e052f32af1b7fade4cce509c820d29deafe97
2025-05-15 12:07:53 +01:00
Treehugger Robot a098f6a855 Merge "Update the color of icon for addDesktopButton" into main 2025-05-14 22:49:38 -07:00
Treehugger Robot 42aaacc11f Merge "Do not expect a desktop task has action views" into main 2025-05-14 19:11:34 -07:00
Treehugger Robot 6bcd5d93de Merge "launcher3: Add error handling for drag preview bitmap creation." into main 2025-05-14 19:02:50 -07:00
Brandon Dayauon 11388a53f4 Merge "Make hotseatQsbShadowHeight public" into main 2025-05-14 17:48:57 -07:00
Mykola Podolian 12d5eae670 Merge "Clear bubble bar saved states if bubble bar controllers not present." into main 2025-05-14 17:38:07 -07:00
mpodolian ae8047b5c3 Reset -1 page progress when leaving it
Reset in-app display override progress when transitioning from home -1
page. In order to come back to the -1 page user has to swipe left from
home again so in-app display override progress will be updated again.

Fixes: 416163737
Flag: EXEMPT - bugfix
Test: Manual. enable 3 buttons navigation mode. Have bubble bar with
bubbles. Swipe to -1 page. Click recent apps button. Click home.

Change-Id: Ibc67f6e024f5c89efb7f80f420fc859aaa9d3e33
2025-05-14 17:16:28 -07:00
Anushree Ganjam 04c3f2c76e Merge "Add logging for AI mode suggestions in Toast." into main 2025-05-14 16:58:40 -07:00
Adnan Begovic 0e41e168b2 launcher3: Add error handling for drag preview bitmap creation.
In some cases, the bitmap that is needed for FastBitmapDrawable
can fail to render. Return a placeholder in that case.

Bug: 416779946
Flag: EXEMPT Bug fix
Test: manual
Change-Id: I188a820157f4ac43b8a13a99f3ac2c2348afbc13
2025-05-14 16:28:34 -07:00
Brian Isganitis 70e62fce31 Merge changes from topic "taskbar-wmproxy-module" into main
* changes:
  Filter out DEFAULT_DISPLAY from Taskbar unit tests.
  Refactor test dagger graph to stub PerDisplayRepository instances.
  Only use mockito-kotlin in SandboxApplication.
2025-05-14 14:17:21 -07:00
Treehugger Robot 753ee52a18 Merge "Support desktop device category in grid options" into main 2025-05-14 13:30:52 -07:00
Treehugger Robot 8272b43675 Merge "Always allow first grid task to snap to top right" into main 2025-05-14 13:05:53 -07:00
Shamali Patwa 4bf3b1a7d9 Merge changes from topic "picker-move" into main
* changes:
  Add a widget apps list and the header composable for widget picker.
  Add screenshot tests for the widgets grid in picker
  Implement a grid of widgets for displaying in widget picker
  Add widget preview composable for widget previews in picker
  Add details composable for details shown below widget previews in picker
  Add a temporary component to display app icon for widgets list
  Make title optional on the widget picker bottom sheet & update insets
  Add a search bar for widget picker in compose
  Add an option to show shadow on the floating toolbar.
  Add top level reusable layouts for widget picker
2025-05-14 12:53:28 -07:00
Treehugger Robot a882e236bb Merge "Add shadow to KQS view" into main 2025-05-14 11:53:24 -07:00
Brandon Dayauon 653b4b9b31 Make hotseatQsbShadowHeight public
This variable is used during layout of the psb in hotSeat.java. It is specifically
applied to calculate the qsbOffsetY()

bug: 413719316
Test: manually presubmit
Flag: com.google.android.apps.nexuslauncher.psb_aim_reskin
Change-Id: I9b4bd244a39de61e7ef23dbf477e1808f30f5401
2025-05-14 11:33:10 -07:00
Treehugger Robot e5b2d2ca1b Merge "Updates Material Color Library" into main 2025-05-14 10:38:59 -07:00
Alex Chau f38d9c3ff3 Always allow first grid task to snap to top right
- Follow-up of ag/31609791 which introduced expectedCurrentTaskView to allow Home -> Overview's currentTask to snap on top-right corner
- This CL ensures the same extra spadce between expectedCurrentTaskView and ClearAllButton is applied when going from Desktopt -> Overview

Fix: 416061364
Test: Home/Fullscreen app/Desktop -> Overview with <=4 tasks, first grid task can always snap to top right
Flag: EXEMPT bug fix
Change-Id: I078eaef04bc951b755b1d83b0c8570c89978077b
2025-05-14 10:08:18 -07:00
Liran Binyamin 0854a5b7f7 Merge "Update long press menu bubble icon" into main 2025-05-14 09:50:02 -07:00
Alex Chau a6fa3db580 Recreate Launcher activity when blur enabled changes
- When battery saver changes, WallpaperThemeManager always recreate activity to reapply theme base on wallpaper color hint changes
- Battery saver change can also result in light/dark theme changes, for which WallpaperThemeManager also recreate activity to apply theme changes
- As a result, it'll be much simpler to recreate activity whenever isBlurEnabled changes
- Exposed recreateToUpdateTheme API from WallpaperThemeManager to achieved this
- Greatly simplified Overview styling to read from styles

Bug: 414789280
Test: manually toggling battery saver and light/dark theme and WallpaperThemeManagerTest
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I90ad724867283fe3c62a9073a6e072491533f774
2025-05-14 17:45:04 +01:00
Sebastián Franco 2175b3fc2e Merge "Remove flags from aconfig where the code was already cleaned" into main 2025-05-14 09:16:56 -07:00
Surbhi Kadam e4b9306c59 Launcher3: send token with early wakeup request to SurfaceFlinger
Passes a binder token to SurfaceFlinger and adds tracing for debugging

Bug: 323292798
Bug: 409740673
Test: presubmit
Flag: EXEMPT log only update; bugfix

Change-Id: I0bc6df0a55cf747203b24b43596bed6ce5ebe76a
2025-05-14 08:07:43 -07:00
Johannes Gallmann 8a0c9b0e3e Merge "Disable predictive back for AllSetActivity" into main 2025-05-14 08:04:48 -07:00
Marcelo Arteiro 7004d3410d Updates Material Color Library
Following 2025 Specifications
 - updates Variant
 - adds a few tokens
 - Removes deprecated Fidelity attribute

Bug: 394371316
Bug: 347286986
Test: Presubmit
Flag: android.os.material_colors_2025_03
Change-Id: Ieb22815cd8a5a898c740849158c639dcff48086d
2025-05-14 08:00:52 -07:00
Treehugger Robot a65936447f Merge "Don't show overview via keyboard shortcut if blocked by SysUi state" into main 2025-05-14 06:44:39 -07:00
Vinay Joglekar 894224b3d2 Merge "Apply correct theme when launcher restarts" into main 2025-05-14 04:56:27 -07:00
Steven Ng d8f2df4124 Don't show overview via keyboard shortcut if blocked by SysUi state
Note: before this change, triggering overview keyboard (KB) shortcut at lock screen would result in the overview shown after the screen is unlocked. This behavior is counter-intuitive. And thus, this change will discard overview KB shortcut at lock screen regardless if an external display is connected,

Flag: EXEMPTED minor bug fix
Test: manually trigger overview KB shortcut at lockscreen in both the default & connected display. Observed that no overview is shown at lock screen and after unlock.
Test: manually trigger overview KB shortcut after lockscreen in both the default & connected display. Observed that the overview is shown at the focused display.
Test: atest NexusLauncherTests:RecentsAnimationDeviceState
Bug: 415040428
Change-Id: Ia585b7b62e5f8de5be6d7cda9ad24760398ca37a
2025-05-14 10:59:10 +00:00
Johannes Gallmann 9e97e2aee5 Disable predictive back for AllSetActivity
This CL disables predictive back for the AllSetActivity in Setup
Wizard.

Bug: 410551501
Test: Manual, i.e. verified that AllSetActivity does not play predictive
      back animation during setup flow.
Flag: EXEMPT bugfix
Change-Id: I2d4e4c62c2c7110f6eccf629dd224773cee0da48
2025-05-14 03:00:00 -07:00
vinayjoglekar d4bd12a763 Apply correct theme when launcher restarts
1. initialize DepthController before applyStyle()
2. initialize mBlurEnabled to correct value based on mCrossWindowBlursEnabled and mPauseBlurs.

Fix: 416687465
Test: Restart launcher and go to overview both from app and home.
Flag: com.android.launcher3.enable_overview_background_wallpaper_blur
Change-Id: I018d25b66d925f201449400fc6bbb6a238a0f531
2025-05-14 10:08:41 +01:00
Hyunyoung Song 21284c8e13 Merge "Revert "Prevent CtS invocation in fake landscape mode"" into main 2025-05-13 23:03:08 -07:00
Treehugger Robot 847486372c Merge "Fix launching 2nd empty desk" into main 2025-05-13 19:06:25 -07:00
Bill Yi 3e79ab7644 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-13 19:02:21 -07:00
Bill Yi b7d28a7b67 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-05-13 19:02:21 -07:00
Treehugger Robot 8cc0274fb0 Merge "Fixing leak in model repository" into main 2025-05-13 17:55:55 -07:00
Suhua Lei 0b12eb5e06 Update the color of icon for addDesktopButton
Set the color of icon to On Surface.

Bug: 417519148
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Test: manual check the button
Change-Id: Ie1897c0661e164347288b4ba4f978e51858ac24e
2025-05-14 00:44:43 +00:00
Shamali P 0725160c04 Add a widget apps list and the header composable for widget picker.
Can either be selectable on click or expandable.

Bug: 408283627
Flag: EXEMPT independent module
Test: will be part of larger screenshot test
Change-Id: I991164c54d52cd64effff4987ff6c55107acb149
2025-05-13 17:13:56 -07:00
Shamali P ef8d996924 Add screenshot tests for the widgets grid in picker
Covers entire grid area with test samples of varying sizes for testing
 the grid placement logic.

Bug: 408283627
Flag: EXEMPT independent module
Test: Screenshot test
Change-Id: I5a4ab0d000e33b71de3760b729922f26445b0e8c
2025-05-13 17:12:57 -07:00
Shamali P aa6159b111 Implement a grid of widgets for displaying in widget picker
BYPASS_LARGE_CHANGE_WARNING
Bug: 408283627
Flag: EXEMPT independent module
Test: Screenshot test

Change-Id: I0139faa9e522dc8f1fcf3b5fbf3362b5ec07047d
2025-05-13 23:13:59 +00:00
Shamali P ce557540d7 Add widget preview composable for widget previews in picker
This cl contains just the image previews, the remote view ones in
 follow up

Bug: 408283627
Flag: EXEMPT independent module
Test: See grid screenshot test
Change-Id: Icf5e7eb98f6714b4a2954dcb9fcf75c0249a4d35
2025-05-13 23:12:11 +00:00