Commit Graph

83004 Commits

Author SHA1 Message Date
Treehugger Robot 05e02fae43 Merge "Add logs for grid migration" into main 2024-11-22 15:52:00 +00:00
Treehugger Robot f2f8cd7536 Merge "Remove redundant a11y announcement upon removal of workspace item." into main 2024-11-22 15:49:35 +00:00
Johannes Gallmann 0610c625e0 Only register Launcher back-callback when ROLE_HOME is held.
When using a 3P Launcher, i.e. when the ROLE_HOME is not held by QuickstepLauncher, there should be no back callback registered with SystemUI.

Bug: 374882166
Flag: EXEMPT bugfix
Test: Manual, i.e. verified back-callback registration updates in SystemUI and also verified that back-to-home navigations in Nova Launcher are responsive.
Change-Id: I03187f80a4c3c893a6529f0a22613f6fdfe7b7b3
2024-11-22 13:49:00 +00:00
Johannes Gallmann b28ff34177 Cancel predictive back when sliding off back button
Bug: 373544911
Test: Manual, i.e. verified that sliding away from the back button (within the taskbar window) cancels the predictive back animation
Flag: com.android.window.flags.predictive_back_three_button_nav
Change-Id: I9a1448c7005211c87a8979261b13fe37ab64a5b2
2024-11-22 13:09:56 +00:00
Alex Chau ba8bfc97b0 Merge "Swipe up from excludeFromRecents task should be shown left of desktop tasks" into main 2024-11-22 11:59:12 +00:00
Uwais Ashraf 61cff8b686 Move fully visible task logic to more centralised method.
This means that overlay is initialised in all cases, not just some. Also uses pre-existing method for `isTaskViewFullyVisible()`

Fix: 376264918
Test: Manual checking of flows in bug.
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: Ia898a2a869b79fb120a162fa5a3fe7df0fbf9800
2024-11-22 10:59:33 +00:00
Bill Yi 0018279493 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4a880f6ed65b4053f7b58562757b9c3a70ed2d5e
2024-11-21 21:18:29 -08:00
Bill Yi b24914be8d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idfd8628134eef581c45e3c0582e1173653f5767f
2024-11-21 21:17:39 -08:00
Pinyao Ting 604ae3283c Remove redundant a11y announcement upon removal of workspace item.
When a workspace item is removed, launcher currently shows a Snackbar which contains a message saying "item removed". This renders the a11y announcement in DeleteDropTarget#onAccessibilityDrop redundant since it's saying exactly the same string.


Bug: 378032433
Change-Id: Iaf3b42404ecd382b1ee15f670cc4ebe0124218d2
Test: manual
Flag: EXEMPT bugfix
2024-11-22 00:34:03 +00:00
Android Build Coastguard Worker c9ff241f88 Snap for 12695596 from b85a1fdf3d to 25Q1-release
Change-Id: I618d6d483937aa8fc52a7bab6c99f23aecd51bc2
2024-11-22 00:17:37 +00:00
Brian Isganitis 6c0cd2278d Do not pre-add All Apps icon in phone mode.
Flag: com.android.launcher3.taskbar_recents_layout_transition
Bug: 343521765
Test: go/testedequals
Change-Id: Ie152344613cf982183c4bb72b8dde138f4f74e37
2024-11-21 23:38:00 +00:00
Brian Isganitis f04ae6b09f Fix LayoutTransition All Apps divider logic for RTL.
We were checking the wrong index (off by one), leading to a crash if the divider is already in the Taskbar at the correct index. However, we do need to add it after the expected index if the divider isn't there, otherwise it will push the icon that is at that position to the right of the divider (it should be to the left).

Flag: com.android.launcher3.taskbar_recents_layout_transition
Bug: 343521765
Bug: 368522274
Test: go/testedequals
Change-Id: I0263f704728286b53da5b45828784b20aaae31ce
2024-11-21 23:38:00 +00:00
Xin Li 7b31be6dfa Merge ab/AP4A.240925.013 into aosp-main-future
Bug: 370570306
Merged-In: If0497fcc17bb0ec44294c4ea1163104b4d8be459
Change-Id: I3bdc59ea3914bcde4104f82de3ce6f8949f40e7d
2024-11-21 15:10:02 -08:00
Treehugger Robot 423c85a2eb Merge "Remove padding from All Apps and Divider views." into main 2024-11-21 22:07:40 +00:00
Brandon Dayauon 90ff53775a Merge "Fix keyboard staying up in AOSP launcher." into main 2024-11-21 22:06:11 +00:00
fbaron 4f1e64c8e6 Add logs for grid migration
Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: n/a it's just logs
Change-Id: Icce21f507e07adfd954fd88634bdd7f0becf4a4c
2024-11-21 13:59:39 -08:00
Artsiom Mitrokhin 7205b24938 Ignore events that occur between app icons on the taskbar
Bug: 297325541
Flag: com.android.launcher3.show_taskbar_pinning_popup_from_anywhere
Test: manual, flip the flag, long-click between taskbar items
Change-Id: If2ee00f31fcd1788bac2c2c0cd78ba1eada86115
2024-11-21 16:38:32 -05:00
Juan Sebastian Martinez 86f3d35839 Adding a mock for MSDLPlayerWrapper to DeleteDropTargetTest.
The mock makes sure we don't rely on a device hardware for tests.

Test: DeleteDropTargetTest
Flag: com.android.launcher3.msdl_feedback
Bug: 379958544
Change-Id: I202b81f3dd16af1c0985980d0b962be0000bf31f
2024-11-21 13:32:43 -08:00
mattsziklay 17212c441c Move shared logic to new package.
Bug: 337917761
Test: Manual
Flag: EXEMPT bugfix
Change-Id: I72c6fe4382fbe66de306a5d1d243f1145ccadbce
2024-11-21 21:31:05 +00:00
Treehugger Robot b85a1fdf3d Merge "Do not scale canvas if scale is 1 for predicted app icon animation." into main 2024-11-21 21:23:23 +00:00
Andy Wickham 05958c0d85 Merge "Don't store SettingsCache within ContextualSearchStateManager." into main 2024-11-21 21:07:54 +00:00
Winson Chung f86cdbdd3a Merge "Adjust visibility for legacy top task tracker tasks when home moves to front" into main 2024-11-21 20:10:10 +00:00
Winson Chung 9eb6ed8879 Adjust visibility for legacy top task tracker tasks when home moves to front
- To workaround the fact that TTT does not get full task visibility info,
  we can existing tasks as not-visible whenever the occluding home task
  is moved to front
- Fix an issue where task icons were not loading for running tasks
  due to us skipping updating for running tasks in the recents
  transition (we will continue to skip updating the thumbnail though)
- Also skip updating the same taskview multiple times if the task
  container has multiple tasks that need to be updated

Bug: 372067617
Bug: 280812109
Flag: EXEMPT bugfix
Test: atest TaskThumbnailViewModelTest,TasksRepositoryTest,RecentsViewModelTest
Test: atest TaplTestsQuickstep#testExcludeFromRecents
Change-Id: Ifa33cfe53d44e5fe7778aecd5434abf9c29b3170
2024-11-21 20:09:58 +00:00
Brian Isganitis 852dccdff2 Merge changes from topic "taskbar-layout-transition-prepare" into main
* changes:
  Prepare for LayoutTransition with RTL support.
  Split up hotseat and recents into two methods.
  Filter out unsupported items immediately when updating Taskbar.
2024-11-21 19:39:05 +00:00
Jon Miranda 8981377ac0 Do not scale canvas if scale is 1 for predicted app icon animation.
Was not able to repo the initial bug, but this change leaves the
original path unchanged.

Fixes: 374579710
Test: N/A
Flag: EXEMPT bugfix
Change-Id: I91e0235571b0736dcbe70c7730d7c90ec949a13e
2024-11-21 11:22:48 -08:00
Sukesh Ram d4fb56f36b Merge "[Taskbar CD] Refactor TaskbarManager for Multiple TaskbarActivityContexts" into main 2024-11-21 18:09:41 +00:00
Sebastián Franco e33c2e72b3 Merge "Remove Allow Rotation in foldables" into main 2024-11-21 17:26:32 +00:00
Brian Isganitis c87f691e04 Prepare for LayoutTransition with RTL support.
Only remove divider when it needs to be removed or moved between All Apps and recents locations. Keep All Apps and QSB in Taskbar at all times. LayoutTransition does not work if views are being removed and then immediately readded (what current code branch does).
Overflow is not supported yet with the LayoutTransition flag.

Test: go/tested-equals
Flag: com.android.launcher3.taskbar_recents_layout_transition
Bug: 368522274, 343521765
Change-Id: I9ae1d7c52e853106cdf86329be6f221213e7cb86
2024-11-21 12:24:13 -05:00
Brian Isganitis 199f860b70 Split up hotseat and recents into two methods.
To support RTL with recents, will need to support calling updateRecents before updateHotseatItems. Splitting into two methods makes this doable.

Test: go/testedequals
Flag: EXEMPT refactor
Bug: 343521765, 368522274
Change-Id: I8756ea23fff1606ef4ab9f72d18dd4b21f135b25
2024-11-21 12:24:13 -05:00
Brian Isganitis 1782af7b6e Filter out unsupported items immediately when updating Taskbar.
Fixes an issue where hotseatItems may not reflect the number of hotseat views in Taskbar. Entries in the array can be null (e.g. no predictions but there is space in the hotseat for them). If these are filtered out immediately, hotseatItems.length will correspond to the number of hotseat views.

Test: go/testedequals
Flag: EXEMPT bugfix
Fix: 379704910
Change-Id: I375d8152fccb6df5a9b783842ecf5dcedf6894c1
2024-11-21 12:24:11 -05:00
Jon Miranda 1d7ac8b8a7 Remove padding from All Apps and Divider views.
Bug: 375661139
Test: confirmed with design team
Flag: EXEMPT bugfix
Change-Id: I0f9cce376d47918e69a65ed288f10143930ee3be
2024-11-21 09:21:57 -08:00
Saumya Prakash a2dea487dc Merge "Fix background of multi instance menu in taskbar" into main 2024-11-21 17:00:31 +00:00
mattsziklay 928b3989b6 Implement cancel transition on tapping floating view.
Cancels split select when tapping the floating task view created from
the desktop split select transition, similar to other implementations of
split select.

Bug: 368631327
Test: Manual
Flag: EXEMPT bugfix
Change-Id: Ib83de3a5ff95a35627b7fac115d4e4566ec79e40
2024-11-21 08:57:59 -08:00
Luca Zuccarini ac2b0503b8 Use the Coreographer's frame time for a more reliable timestamp.
Bug: 323863002
Flag: com.android.systemui.shared.return_animation_framework_library
Flag: com.android.systemui.shared.return_animation_framework_long_lived
Test: manual
Change-Id: I213bae365e7a10e9151febb7365623b1dc44c86b
2024-11-21 15:22:08 +00:00
Liran Binyamin a673a1b456 Merge "Deflake BubbleBarViewAnimatorTest" into main 2024-11-21 14:53:22 +00:00
Alex Chau 64ae9bcfe5 Swipe up from excludeFromRecents task should be shown left of desktop tasks
- excludeFromRecents are sometimes added as index 0 after moveRunningTaskToFront, breking the model that fullscreen tasks should be shown after desktop tasks
- Added getRunningTaskExpectedIndex to compute expected runningTask postion in all scenario, and apply this position both when adding the view in showCurrentTask and moveRunningTaskToExpectedPosition

Fix: 380232192
Test: Swipe up from following scenario in phone/tablet, repeat several times
1) 1st fullscreen task
2) 2nd fullscreen task
3) excludeFromRecents task
4) Desktop task
Flag: EXEMPT BUG_FIX

Change-Id: Iec551fb1403a6bb5307b684a50f7ae7d31bd4644
2024-11-21 14:28:58 +00:00
Marcelo Arteiro bc02103a6a Migrate materialColor* attributes into colors
TLDR:
* This change should not break anything or change any color.
* Simplifies theming and styling while improving developer experience.
* With this  developers can often skip styling for color entirely, while ensuring consistency and preventing accidental overrides.

Bug: 374273611
Test: presubmit
Flag: EXEMPT bugfix
Change-Id: Id19038078e83c73847b1a7c686c3a3df1ecccac2
2024-11-21 13:08:11 +00:00
Treehugger Robot ad43c3dbc9 Merge "Fix TaskbarNavButtonControllerTest failure" into main 2024-11-21 09:05:49 +00:00
Toshiki Kikuchi 0ccbf14ce4 Fix taskbar visibility when default-to-desktop
This CL fixes the taskbar visibility when showLockedTaskbarOnHome is
enabled.
Ife336ebd57eb2f60c2bc33ed6a4527c42111808f wrongly assumes that the
taskbar is always invisible when the launcher is visible, so this CL
fixes the assumption.

Bug: 379870867
Bug: 379785901
Flag: EXEMPT bug fix
Test: manual
Change-Id: I9043898fb499520954ee3c5463ab28208d374875
2024-11-21 15:14:33 +09:00
Ikram Gabiyev a13ef72cb5 Merge "[PiP2] Do not setFinishTaskTransaction in PiP2" into main 2024-11-21 03:38:51 +00:00
Sukesh Ram d138ce959b [Taskbar CD] Refactor TaskbarManager for Multiple TaskbarActivityContexts
Refactor the TaskbarManager to support multiple TaskbarActivityContexts.

Flag: EXEMPT not adding new behavior
Bug: 362720616
Test: Manual
Change-Id: I1baa081f6994cb94465f20aa7e0c6b47f5cb7eb8
2024-11-20 18:56:25 -08:00
Charlie Anderson b941c8c0a8 Merge "Revert^2 "Update test activities with a non-default icon."" into main 2024-11-21 02:39:38 +00:00
Andy Wickham 30ad7246ad Don't store SettingsCache within ContextualSearchStateManager.
We can access the static instance as needed without retaining it
in this class.

Bug: 321226611
Test: Manual (test Circle to Search setting works as expected)
Flag: EXEMPT bugfix
Change-Id: I79a22d313bf802b6ea5e388e06269dd9ee5131a4
2024-11-20 18:05:21 -08:00
Ikram Gabiyev d4788e6365 [PiP2] Do not setFinishTaskTransaction in PiP2
PiP2's enter flow is different in that we resolve
TRANSIT_PIP's startWCT in Shell, and PipTransition
will always make sure to set the right alphas
at the start and finish.

Bug: 380030547
Flag: com.android.wm.shell.enable_pip2
Test: atest NexusLauncherOutOfProcTests:TaplTestsSplitscreen
Change-Id: I7d28ed5dcccecfab71ff324098d5c31653ce1c9f
2024-11-20 16:30:35 -08:00
Treehugger Robot 0fb50e85d5 Merge "Handle edge case where overflow icon is overflowing" into main 2024-11-21 00:18:57 +00:00
Android Build Coastguard Worker 36b242038a Snap for 12687986 from 3fa3085242 to 25Q1-release
Change-Id: I092787f69874bdf615f1408c2b0c7f768c8b558b
2024-11-21 00:17:37 +00:00
Sebastian Franco cb8f82a9fd Remove Allow Rotation in foldables
Fix: 380128987
Flag: com.android.launcher3.one_grid_specs
Test: NA
Change-Id: I4bdb495b57fa7d638dde3fe47e853f3505f63628
2024-11-20 15:42:43 -08:00
Charlie Anderson 24e3132bbd Revert^2 "Update test activities with a non-default icon."
3e7d28e1c7

Change-Id: Ifea50664980a5bb52700e494abb10643d68fbd01
2024-11-20 23:23:01 +00:00
Saumya Prakash 1aa57333ca Fix background of multi instance menu in taskbar
This change addresses an issue where the background of the multi
instance menu would sometimes not render in time, leading to a visual
bug.

Fix: 380087041
Bug: 315989246
Test: Manual
Flag: com.android.launcher3.enable_multi_instance_menu_taskbar
Change-Id: I32b746a990e89e954b00a0cdcb0e1bf2fae2537f
2024-11-20 22:36:53 +00:00
Brandon Dayauon c2f4537495 Fix keyboard staying up in AOSP launcher.
The keyboard doesn't close when swiping down from A-Z list. So in Launcher when going to any state from A-Z getAPpsView().reset() gets called which eventually
calls resetSearch() where we can hideKeyboard.

bug: 379052503
Test: before in bug
after: https://drive.google.com/file/d/11oVTvkBtj9rECEtz4IVH1tURaJz6pFTO/view?usp=sharing
Flag: NONE bug fix
Change-Id: I707bf5dc2f81d5e83e869e34de674ef7fc065486
2024-11-20 14:30:41 -08:00