Commit Graph

79378 Commits

Author SHA1 Message Date
Jagrut Desai
dbfd95e6de Merge "Open Task into Desktop Mode when Taksbar is in DesktopMode" into main 2024-12-05 19:32:26 +00:00
Jagrut Desai
463c3b06b9 Merge "Don't recreate taskbar in Overview" into main 2024-12-05 19:32:07 +00:00
Tracy Zhou
d2b90982eb Merge "Restore barMode and wallpaperVisible to Taskbar NavbarButtonsViewController state" into main 2024-12-05 19:08:24 +00:00
Sebastián Franco
8f3a671ff6 Merge "Fix findMinWidthAndHeightDpForDevice so it finds the smallest dp height of the cached displays" into main 2024-12-05 12:54:52 +00:00
Sebastián Franco
5c4cebc4ac Merge "Using the right context when in FixedLandscape" into main 2024-12-05 12:54:52 +00:00
Luca Zuccarini
7be62fbe00 Merge "Revert "Revert "Use the Coreographer's frame time for a more rel..."" into main 2024-12-05 10:23:36 +00:00
Uwais Ashraf
d2683d6b49 Merge "Add flag for using top visible activity for recent tasks instead of indicies" into main 2024-12-05 08:16:59 +00:00
Sebastián Franco
2377bd1c3a Merge "Make sure GRID_NAME is updated every time it changes." into main 2024-12-05 03:46:37 +00:00
Matt Sziklay
f47c28ef95 Merge "Implement cancel transition on tapping floating view." into main 2024-12-05 03:16:51 +00:00
Charlie Anderson
a2464c6609 Merge "Add logging to verify when LoaderTask is stopped or cancelled" into main 2024-12-05 02:34:09 +00:00
Treehugger Robot
744d0b9925 Merge "Workaround for incomplete setup flow prior to Launcher tests" into main 2024-12-05 01:30:50 +00:00
Sebastian Franco
2b0cdbbc87 Make sure GRID_NAME is updated every time it changes.
Bore it was only updated when the device was innitialized,
but other changes to the IDP would not udpate the GRID_NAME pref.

Fix: 380954618
Test: NA
Flag: com.android.launcher3.one_grid_specs
Change-Id: I4fa73a4b838c0d0c7c1c88ea91c62ac8ae6676b7
2024-12-05 01:25:25 +00:00
Treehugger Robot
db013a8e75 Merge "TaskViews indices inside RecentsView continue [2/n]" into main 2024-12-05 00:35:26 +00:00
fbaron
9ce45bac05 Fix findMinWidthAndHeightDpForDevice so it finds the smallest dp height of the cached displays
Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: HomeScreenImageTest
Change-Id: I04bc264a3f3579eff18412c02546460aaaeff955
2024-12-04 23:51:43 +00:00
Sebastian Franco
789546f528 Using the right context when in FixedLandscape
Fix: 378956881
Test: HomeScreenImageTest
Flag: com.android.launcher3.one_grid_specs
Change-Id: I57c0fb2b57828e0cb80d20417f0a45e49c78b80e
2024-12-04 23:51:34 +00:00
Uwais Ashraf
5305c71e8b Add flag for using top visible activity for recent tasks instead of indicies
Bug: 342627272
Flag: com.android.launcher3.enable_use_top_visible_activity_for_exclude_from_recent_task
Test: none - flag addition
Change-Id: Ia32dacaab750f485a584d5a15fd0b3bf40e36446
2024-12-04 22:28:57 +00:00
minch
1bf7678154 TaskViews indices inside RecentsView continue [2/n]
In applyLoadPlan
- Refactored newFocusedTaskView to be based on first non-Desktop TaskView
- Set newFocusedTaskView to null when enableGridOnlyOverview() is on
- Updated target page calcuation to be based on the following priority: running task, focused task, first non-desktop task, last desktop task

Flag: EXEMPT as no functionality changes
Bug: 379942019
Test: Ensure targetPage in applyLoadPlan is correct in the following scenarios:
1. Only have desktop task
2. Desktop task and a few full screen tasks
3. Swipe up from desktop, 1st fullscreen task, and 2nd fullscreen task
4. Repeat with enableGridOnlyOverview() on, which does not have focused task

Change-Id: Iea519ad4a37c15f76557487078ac4dcf4d53480c
2024-12-04 22:21:20 +00:00
Charlie Anderson
8d76114fe3 Add logging to verify when LoaderTask is stopped or cancelled
Flag: EXEMPT just logging
Test: Presubmit
Bug: 377510898
Change-Id: Ie97adc07ed995af8b09eab232fcce9431bea42d5
2024-12-04 15:56:43 -05:00
Shamali Patwa
2909e72d36 Merge "Update accessibility hint for widget cell that shows add button." into main 2024-12-04 20:22:26 +00:00
Treehugger Robot
14a4684992 Merge "Fix issue in scrolling in remote compose widgets" into main 2024-12-04 18:38:57 +00:00
Shamali P
0e668e1b1d Update accessibility hint for widget cell that shows add button.
With tap to add feature, tapping widget cell reveals add button.

So, clarify the intent with ACTION_CLICK

Bug: 374033389
Test: Talkback
Flag: EXEMPT BUGFIX
Change-Id: I03e47241fbc16f1354394e3a6fd412998642e6cf
2024-12-04 18:12:36 +00:00
Treehugger Robot
9fdf9efdd2 Merge "multiple-desktops: Add new desktop button xml file" into main 2024-12-04 14:02:41 +00:00
Alex Chau
d7ad4d5dee Merge "Reapply insets normalization on configuration changes" into main 2024-12-04 11:25:37 +00:00
Alex Chau
ba8b4d7851 Merge "Reland "Handle uiMode changes in QuickstepLauncher"" into main 2024-12-04 10:45:02 +00:00
minch
7fbc82cab1 multiple-desktops: Add new desktop button xml file
- Add the skeleton xml file for the new desktop button
- Add the icon for this button as well
- Create the kotlin file for this button

Flag: EXEMPT as added files haven't connected with the production logic
Fix: 379941322
Test: None
Change-Id: I5c7ea2c061f0f9539483221f40c892626103d11e
2024-12-04 10:26:42 +00:00
Tracy Zhou
3d31b97389 Restore barMode and wallpaperVisible to Taskbar NavbarButtonsViewController state
Fixes: 379816005
Test: manual
Flag: EXEMPT bugfix
Change-Id: I2a181c498cb674f077d1b0accfe85b62880a1cfc
2024-12-03 17:16:09 -08:00
Pinyao Ting
1f72f9b3de Fix issue in scrolling in remote compose widgets
There was special check in LauncherAppWidgetHostView to disallow intercept touch events in launcher when the widget is scrollable, the same check needs to be implemented for remote compose widget for scrolling to work properly.

Bug: 339721781
Change-Id: I8b824f293ab287a7844f93610b8b952c4aefa3dd
Test: manual
Flag: EXEMPT bugfix
2024-12-04 00:45:48 +00:00
Tony Wickham
ab8fa5e67e Merge "Factor in userId for updateHotseatItemsFromRunningTasks" into main 2024-12-04 00:31:48 +00:00
Tony Wickham
db64e1b3d1 Factor in userId for updateHotseatItemsFromRunningTasks
Test: onRecentTasksChanged_inDesktopMode_sameHotseatPackage_differentUser_isInShownTasks
Test: Pin personal Chrome, open work Chrome in desktop mode; ensure a
new work icon is created in the running apps section
Flag: com.android.window.flags.enable_desktop_windowing_taskbar_running_apps
Bug: 376818660

Change-Id: Ie5cf3ab8e839456e6bd774de8a4398835e790019
2024-12-04 00:31:36 +00:00
Treehugger Robot
d0b6a849ad Merge "Make DynamicResource as dagger singleton (15/n)" into main 2024-12-03 22:14:56 +00:00
Treehugger Robot
5ef606c417 Merge "Do not let talkback read "Item added to home screen" after an app is added to home screen." into main 2024-12-03 21:43:08 +00:00
Saumya Prakash
1fa9b25b73 Merge "Ensure Desktop Tasks show up in Taskbar multi instance menu" into main 2024-12-03 21:14:32 +00:00
Anushree Ganjam
b60be0896d Make DynamicResource as dagger singleton (15/n)
Bug: 361850561
Test: Manual
Flag: EXEMPT Dagger Integration
Change-Id: I8a3de783de34f79c8f8f64c5c964cc1636ace1a8
2024-12-03 12:01:45 -08:00
Alex Chau
579a785144 Reapply insets normalization on configuration changes
- When going from an app to Overview after deivce is rotated, sometimes the Configuration associated with Launcher activity have old information (dimension from preious rotation), causing LauncherRootView.onApplyWindowInsets to store wrong insets from WindowManagerProxy.normalizeWindowInsets
- The fix is when LaucnehrRootView.dispatchInsets is called, reapply insets by calling onApplyWindowInsets again to get updated normalized insets.

Fix: 323105140
Test: Launch an app, rotate to landscape, tap Recents button to go to Overview
Flag: EXEMPT BUG_FIX
Change-Id: I8e641a2702670d1364ee5a0f10a1b3c8d1a2b324
2024-12-03 19:03:28 +00:00
Brandon Dayauon
f274d3ca95 Merge "Fix "disabled" at the end of talkback for workPausedCard." into main 2024-12-03 18:31:46 +00:00
Xin Li
aa31d0d320 [automerger skipped] Merge ab/AP4A.241205.013 into aosp-main-future am: c7ff9cc0af -s ours
am skip reason: Merged-In Ia507354f42959ce9d320114a313bfc533186b524 with SHA-1 9aa005b657 is already in history

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

Change-Id: Ibdedab3fbbd4c755527d9e79d9eaf775ecc651c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-03 18:21:59 +00:00
Alex Chau
007abe80e4 Reland "Handle uiMode changes in QuickstepLauncher"
- Added uiMode in handled configChanges for QuickstepLauncher, NexusLauncherActivity
- RecentsActivity will be handled separately in b/382072029
- This avoids Launcher from being recreated when swithching from an app in driving mode (e.g. Maps), which causes massive jank
- Launcher layout is unaffected when driving mode changes, so a recreation is unnecessary
- When Light/dark mode changes, BaseActivity.updateTheme will still causes activity to be recreated. Launcher will mark a boolean in saved staete so next recreate will restore previous state even if state has FLAG_DISABLE_RESTORE (e.g. Overview), similar to the existing check that force restore when UI_MODE changes

Relanded changes: /q/submissionid:27627108-b/339747262

Fix: 339747262
Test: Swtich from driving mode app to another or home in 1p and 3p laucnher
Test: Switch light/dark mode and Launcher is updated correctly and stay in previous state
Flag: EXEMPT bugfix
Change-Id: I5a62b1bcd19eed9d232f30db94aa0e032f4541bd
2024-12-03 18:20:56 +00:00
Treehugger Robot
1733dedf85 Merge "Add GridDimensionSpecs to fixed landscape and make grid dimension generalized so we can use it to determine row count or col count" into main 2024-12-03 18:05:10 +00:00
Schneider Victor-tulias
bbefa5daf7 Merge "Use the RecentsWindowTracker in FallbackRecentsTest rather than RecentsActivity's ActivityTracker when flag is enabled" into main 2024-12-03 16:06:40 +00:00
Brandon Dayauon
a7340e8575 Merge "Add unit testing to workkUtilityView" into main 2024-12-03 15:43:48 +00:00
Treehugger Robot
1c9b6dd4f3 Merge "[Launcher Memory Leak] Fix leak of AbsSwipeUpHandler via Launcher#mOnDeferredActivityLaunchCallback" into main 2024-12-03 03:56:03 +00:00
fbaron
d1cd8c2ea6 Add GridDimensionSpecs to fixed landscape and make grid dimension generalized so we can use it to determine row count or col count
Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: HomeScreenImageTest
Change-Id: If1dafedc710ebc483fc7b6b5cd6cae6f70dc3cfc
2024-12-03 02:43:13 +00:00
Saumya Prakash
a32f7f3f4a Ensure Desktop Tasks show up in Taskbar multi instance menu
This change adds in desktop tasks to show up in the Manage Windows
Taskbar menu. Previously these were getting filtered out.

Fix: 380167542
Bug: 315989246
Test: Launch multiple tasks in desktop mode and see that they show up in
the multi instance viewer from the Taskbar menu
Flag: com.android.launcher3.enable_multi_instance_menu_taskbar

Change-Id: Ia07b3ad68f43c0f121b0608c5341d50970c8af4c
2024-12-02 23:44:59 +00:00
Tony Wickham
7614088dc5 Merge "Fix Taskbar 3 Button y position on launcher home pause/resume" into main 2024-12-02 23:33:57 +00:00
Wen-chien Wang
ef427290c9 Merge "Register back action to close the KQS view" into main 2024-12-02 22:04:11 +00:00
Schneider Victor-Tulias
1df3836591 Use the RecentsWindowTracker in FallbackRecentsTest rather than RecentsActivity's ActivityTracker when flag is enabled
Test: pre/postsubmit
Fixes: 381548102
Flag: EXEMPT checking broken tests
Change-Id: I5764c661c53c383a80fbd568e839a5f3d2633427
2024-12-02 16:40:32 -05:00
Treehugger Robot
fc6d6be050 Merge "Using inteface descriptor as the key for various interface extras" into main 2024-12-02 21:22:45 +00:00
Wen-Chien Wang
ecc50c6d7c Register back action to close the KQS view
As the KQS view is not extending the floating view, we have to
explicitly register the back action to close the KQS view.

Bug: 379778483
Test: open KQS via alt-tab/overflow button and tap the back button
Flag: com.android.launcher3.taskbar_overflow
Change-Id: I140813d1792f0c17aee5f9f8dd9fa3ed8b40ba6c
2024-12-02 21:00:35 +00:00
Kevin Lim
79fb6dfbdb Merge "[a11y] Fix talkback column and item count for AllAppsGrid" into main 2024-12-02 20:52:54 +00:00
Brandon Dayauon
345901fdb0 Merge "Fix close button in workEDU card not 48dp." into main 2024-12-02 20:39:20 +00:00