Commit Graph

80339 Commits

Author SHA1 Message Date
Schneider Victor-Tulias
0ae28ca5d0 Update KQS text font family to match new specs
Flag: com.android.launcher3.expressive_theme_in_taskbar_and_navigation
Fixes: 393615634
Test: opened KQS, be before/after in bug
Change-Id: Ia953e2b927b6e69c0c150df01925436b6247d751
2025-02-14 10:49:30 -05:00
Anushree Ganjam
743786b66c Merge "Move ContextualSearchHapticManager to Dagger" into main 2025-02-10 19:54:06 -08:00
Treehugger Robot
f37f0491b7 Merge "[CD Taskbar] Fix Window Context & Enable External Context adding" into main 2025-02-10 18:33:15 -08:00
Treehugger Robot
7456651ed7 Merge "Updating ThemeManager to be extendible" into main 2025-02-10 17:20:26 -08:00
Anushree Ganjam
6fada1c0f5 Move ContextualSearchHapticManager to Dagger
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger
Change-Id: Id33ef349dc8d793ab7c43d6f420e224a8de515af
2025-02-10 17:17:52 -08:00
Treehugger Robot
c913d5317a Merge "Move RecentsModel to Dagger." into main 2025-02-10 16:25:50 -08:00
Sukesh Ram
47f0f6dc8e [CD Taskbar] Fix Window Context & Enable External Context adding
Use variable constrained within TaskbarManager for primary displays and add external window contexts as new displays are added. Ensures the lifecycle of window context map isn't tied to the required instances of primaryWindowContext.

Test: m
Bug: 395702003
Bug: 393984037
Bug: 391653300
Flag: com.android.window.flags.enable_taskbar_connected_displays
Change-Id: Idc461b8e6e249060feffac703dff1bf7d5974512
2025-02-10 16:25:16 -08:00
Treehugger Robot
c83abcadb7 Merge "Add spring animations for neighboring tasks on dismiss cancel" into main 2025-02-10 15:32:45 -08:00
Hongwei Wang
bb3006dfd9 Merge "Update the comment on detach" into main 2025-02-10 15:01:54 -08:00
Treehugger Robot
cc6fd8637e Merge "Adding feature flag extendible theme" into main 2025-02-10 14:28:45 -08:00
Treehugger Robot
82598dd899 [automerger skipped] Merge "Replace .toList() with .collect()" into main am: 21a64726cf am: c536680cab -s ours
am skip reason: Merged-In Id8d1de1531b67a7daf448e45592b7ef78f685fc2 with SHA-1 1b9fd985d4 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3473840

Change-Id: I81c7153a35a696c62b25e031b768f8d7e250267f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-10 13:48:56 -08:00
Treehugger Robot
c536680cab Merge "Replace .toList() with .collect()" into main am: 21a64726cf
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/3473840

Change-Id: I297861c30d0133e71d667c4d6a1d769df4990790
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-10 13:25:44 -08:00
Pat Manning
a82868d7df Add spring animations for neighboring tasks on dismiss cancel
Fix: 389083088
Test: TaplTestsQuickstep#testDismissCancel
Test: TaskGridNavHelperTest
Flag: com.android.launcher3.enable_expressive_dismiss_task_motion
Change-Id: I1240519eea499b5839d64e537588bde3cb0a424b
2025-02-10 13:24:19 -08:00
Brandon Dayauon
4498f095fe Merge "Fix shadow clipping in work FAB." into main 2025-02-10 13:21:59 -08:00
Treehugger Robot
21a64726cf Merge "Replace .toList() with .collect()" into main 2025-02-10 12:58:19 -08:00
Sunny Goyal
0e65813979 Adding feature flag extendible theme
Bug: 381897614
Flag: com.android.launcher3.extendible_theme_manager
Test: N/A
Change-Id: I20ed674482f7b1e6e64b2907944d3879e1a5c2c0
2025-02-10 12:03:36 -08:00
Cole Faust
04bff7b50c Merge "Replace .toList() with .collect()" into main 2025-02-10 11:59:47 -08:00
Sunny Goyal
835461a148 Updating ThemeManager to be extendible
Moving the themeController inside the iconState object

Bug: 381897614
Test: atest ThemeManagerTest
Flag: EXEMPT refactor
Change-Id: I190be0af3202e97808f5dbda30ad0ca811581881
2025-02-10 11:49:32 -08:00
Treehugger Robot
4c1679fe4f Merge "Re-use existing method to get split root" into main 2025-02-10 11:40:09 -08:00
Anushree Ganjam
d158433769 Move RecentsModel to Dagger.
Bug: 361850561
Test: Presubmit
Flag: EXEMPT dagger

Change-Id: I0d459ee3fc012e8e371035071f1b32eb2483cdc5
2025-02-10 10:07:20 -08:00
Charlie Anderson
9a791b8f1a Merge "Revert^2 "Restore Archived Pinned Shortcuts instead of removing them."" into main 2025-02-10 08:57:11 -08:00
Charlie Anderson
6361be0f48 Merge "Add flag for launcher iconography and font updates" into main 2025-02-10 08:35:46 -08:00
Uwais Ashraf
3dd744a8bd Merge "Updates the app icon based on the TaskData" into main 2025-02-10 07:36:27 -08:00
Jordan Silva
e316ea5f85 Merge "Fix empty thumbnail/icon by re-fetching data from cache" into main 2025-02-10 02:56:34 -08:00
Jordan Silva
687862c4a9 Updates the app icon based on the TaskData
- Introduces `setIconState` to manage icon and text updates based on `TaskData`.
- Refactors IconAppChip to use the icon and title provided by TaskViewModel.

Fix: 388486032
Fix: 388490814
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Change-Id: Ibf469743ebc767054eaaabe1891750b7f9de827a
2025-02-10 02:24:52 -08:00
Treehugger Robot
bd93d0d4d3 Merge changes If104c67d,Id59fb236 into main
* changes:
  [CD][Alt+Tab] Show apps from all desktops for KQS on CD
  [CD][Alt+Tab] Implement skeleton code for KQS on CD
2025-02-09 13:07:46 -08:00
Ajinkya Chalke
3ef91e087d [CD][Alt+Tab] Show apps from all desktops for KQS on CD
- Even without multiple desktops, apps that are moved to connected display show up in separate desktop task.
- Further changes may be required to launch a desktop after multiple desktops is implemented.

Bug: 382762871
Flag: com.android.launcher3.enable_alt_tab_kqs_on_connected_displays
Test: manually built and run the CUJ
Change-Id: If104c67d95a1ec3de404998b06352edfa02c0f09
2025-02-09 19:06:54 +00:00
Ajinkya Chalke
4078347cbf [CD][Alt+Tab] Implement skeleton code for KQS on CD
- This change will not render KQS on connected display (CD) even with the flag ON as taskbars are not yet created for connected displays.

Bug: 382762871
Change-Id: Id59fb23630aaf0e74c35818f2a4ca56e5ef2e7bb
Flag: com.android.launcher3.enable_alt_tab_kqs_on_connected_displays
Test: manually built and run the CUJ
2025-02-09 19:06:45 +00:00
Jordan Silva
9f56a1f793 Fix empty thumbnail/icon by re-fetching data from cache
Request data for all tasks in `TasksRepository` to prevent stale data. This ensures thumbnails and icons are not replaced and become null due to race conditions. The updated code requests data for all tasks, leveraging the cache for immediate returns.

Fix: 394384233
Flag: com.android.launcher3.enable_overview_icon_menu
Test: OverviewImageTest
Change-Id: I356de13b5e9671f50bb1c2680b54b78478fadc28
2025-02-09 05:29:45 -08:00
Ben Lin
473bea410c Merge "Update DesktopMode config for test." into main 2025-02-08 10:47:56 -08:00
Charlie Anderson
4905defc6a Add flag for launcher iconography and font updates
Bug: 364950287
Flag: com.android.launcher3.enable_launcher_visual_refresh
Test: Presubmit
Change-Id: I8bb311cf282e1fa25c7517f405c9d637f0b9d99f
2025-02-07 20:30:43 -08:00
Vadim Tryshev
4d7e822181 Merge "Remove stale TODO." into main 2025-02-07 18:21:48 -08:00
Treehugger Robot
b3ca33ee45 Merge "Refactor: Extract splash alpha logic from TaskThumbnailViewModel" into main 2025-02-07 17:30:46 -08:00
Treehugger Robot
628b37af3d Merge "Sort grid options in onegrid" into main 2025-02-07 14:48:16 -08:00
Vadim Tryshev
a750726198 Remove stale TODO.
The TODO was added by an external contributor from the test org. The contributor is not available for the proper fix, so leaving the workaround as is.

Bug: 225505986
Change-Id: I4d94214f36a4d927546d87f01c924db82fbbe898
Test: presubmit
Flag: NA test code
2025-02-07 14:27:59 -08:00
Treehugger Robot
ff1fbcf177 Merge "Reorder shape options, making sure that the default Circle is first." into main 2025-02-07 13:31:17 -08:00
Treehugger Robot
d633c4774b Merge "Fix issue where turning off fixed landscape goes to default grid" into main 2025-02-07 13:16:16 -08:00
Jordan Silva
a0c936b6ad Refactor: Extract splash alpha logic from TaskThumbnailViewModel
This commit updates how splash alpha is propagated to `TaskThumbnailView`. These changes reduces the usage of flows to handle animations to improve the performance by avoiding inherent overhead for sending messages between threads (go/sysui-flow-overhead).

Bug: 390581380
Doc: go/launcher-overview-unified-taskviewmodel
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Test: OverviewImageTest
Test: TaskViewModelTest
Test: TaskThumbnailViewModelImplTest
Test: TaskThumbnailViewScreenshotTest
Change-Id: I467da1a90b653fb108eb32534bc0dd2a67d95083
2025-02-07 20:52:37 +00:00
Treehugger Robot
d74a33af5a Merge "Make AddDesktopButton can be navigated to through keys" into main 2025-02-07 12:33:46 -08:00
Treehugger Robot
2d906e472c Merge "launcher3: Gate strict mode enablement behind flag." into main 2025-02-07 12:32:39 -08:00
Charlie Anderson
ceb401c3e7 Revert^2 "Restore Archived Pinned Shortcuts instead of removing them."
This reverts commit f5cb1b664b.

Reason for revert: adding test fix and reverting

Change-Id: I2fc8dc83259b2ee7992ac2291df6ee4246a2e9d5
2025-02-07 12:14:55 -08:00
Federico Baron
8d9d81e4b2 Sort grid options in onegrid
We need to make sure that the new grid options are sorted by column
count from greatest to least

Bug: 395086953
Flag: com.android.launcher3.one_grid_specs
Test: manually verified
Change-Id: I94fbf0fe74fa7dfc92afc64be92cdf511b79e763
2025-02-07 20:13:41 +00:00
Treehugger Robot
126566a096 Merge "desktop-exploded-view: Implement layout algorithm" into main 2025-02-07 12:00:23 -08:00
Treehugger Robot
795b36785e Merge "Initial Desks tracking on Launcher" into main 2025-02-07 11:53:55 -08:00
Brandon Dayauon
b995cbe857 Fix shadow clipping in work FAB.
The reason is because the parent container having set clipped children
to true. It is already turned off for the fast letter scroll prototype
so we can probably just set to false all together.

Bug: 383299303
Test: manually-
before: https://drive.google.com/file/d/1GfJtmdX6RPi0QWlpjd1uBNGcDm_ePJko/view?usp=sharing
after: https://drive.google.com/file/d/1Lf6boBSeZ1ZcJ9M24S_JP6jzdUfov8kh/view?usp=sharing
Flag: com.android.launcher3.work_scheduler_in_work_profile
Change-Id: I5060081f51a11dd34fd55afb75a5302759e16670
2025-02-07 19:24:59 +00:00
Daniel Norman
da4d1d9f00 Merge "aconfig must have the same container with the declaration" into main 2025-02-07 11:10:45 -08:00
Charlie Anderson
4f23162f77 Reorder shape options, making sure that the default Circle is first.
Bug: 394885877
Flag: com.android.launcher3.enable_launcher_icon_shapes
Test: manually verifying options
Change-Id: I85e9b56f6ede3b5a367e6833fa51ce5962f42883
2025-02-07 18:57:31 +00:00
minch
b39d3015f8 Make AddDesktopButton can be navigated to through keys
Add the focus outline to the button as well.
Same color, ripple effect as the ClearAllButton is applied.

Flag: com.android.window.flags.enable_multiple_desktops_frontend
      com.android.window.flags.enable_multiple_desktops_backend
Bug:391875235
Test: TaskGridNavHelperTest
Change-Id: If93f86a1dce4df8ee6b1c50dfc44092dad2eafab
2025-02-07 18:33:23 +00:00
Xiaoqian Dai
3491fa49a7 desktop-exploded-view: Implement layout algorithm
It was ported over from ChromeOS Overview layout algorithm. In overview,
the layout is done in two stages:
1. Optimal height is determined. In this stage height is bisected to
   find maximum height which still allows all the windows to fit.
2. Row widths are balanced. In this stage the available width is reduced
   until some windows are no longer fitting or until the difference
   between the narrowest and the widest rows starts growing. Overall
   this achieves the goals of maximum size for previews (or maximum
   row height which is equivalent assuming fixed height), balanced rows
   and minimal wasted space.

Flag: com.android.launcher3.enable_desktop_exploded_view
Test: Manual
Bug: b:367353392, b:353948965

Change-Id: I1d0fd2b30ffa5bbc0853650884cf85b519be4227
2025-02-07 10:06:05 -08:00
Ahmed Fakhry
c0597ac53b Initial Desks tracking on Launcher
This CL adds the initial implementation of the desks tracking
on the launcher side inside `DesktopVisibilityController`.

Bug: 392986431
Test: m
Flag: com.android.window.flags.enable_multiple_desktops_frontend
Flag: com.android.window.flags.enable_multiple_desktops_backend
Change-Id: I7ece2407a03fec1cad4663efa230ec9a1980fb75
2025-02-07 17:49:36 +00:00