Commit Graph
87505 Commits
Author SHA1 Message Date
TreeHugger Robot be539a692d Merge "Dispatch onAnimationStart and End to maintain proper state" into tm-qpr-dev am: 8baae80cdf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21150244

Change-Id: I463f969d05b6e26e8d69cd906674a9c6a92be611
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 20:47:39 +00:00
TreeHugger Robot fda08cb9cb Merge "Add @ScreenRecord to testPressHomeOnAllAppsContextMenu" into tm-qpr-dev am: 18be12d0dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21136643

Change-Id: I4d9f9f53bd62050b93a6e01f9f153a610f47712e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 20:47:02 +00:00
Stefan Andonian 1d7f703514 Migrate "isRotationAllowed" setting to LauncherPrefs.
This semi-complicated case requires use of a context in order to get the
default value. That is why it was migrated by itself.

Bug: 261635315
Test: Manually tested all the base functionality of the launcher.
Change-Id: I40d8ccd414402b55921a0a224264414d3245871b
2023-02-01 20:26:41 +00:00
Brian Isganitis 748094b185 Force persistent taskbar all apps icon to light version.
Persistent taskbar background is always dark regardless of device theme,
so we should make the icon always light for now.

Test: Manual
Fix: 262837720
Change-Id: I8f66af874e07f68e1943245e9cd49c3b3107915f
2023-02-01 12:07:58 -08:00
TreeHugger Robot 8baae80cdf Merge "Dispatch onAnimationStart and End to maintain proper state" into tm-qpr-dev 2023-02-01 18:58:56 +00:00
TreeHugger Robot 18be12d0dd Merge "Add @ScreenRecord to testPressHomeOnAllAppsContextMenu" into tm-qpr-dev 2023-02-01 18:51:31 +00:00
Fengjiang Li a007740815 [Predictive Back] Hide inactive recycler view when work profile is enabled on tablet
This CL will make sure scale animation doesn't reveal the offscreen main/work recycler view on tablet in all apps to home transition

Bug: b/267226558
Test: manual, see before/after video in bug
Change-Id: I9a8add0ac2c902e3f4315de099939f9297f6604a
2023-02-01 10:18:52 -08:00
Nicolo' Mazzucato 06578ff8b1 Improve launcher tracing around unfold animation
This will make it explicit in a trace when we're waiting for one additional frame after onResume to start processing unfold animation related progresses

Bug: 267287854
Test: recorded trace locally after unfolding
Change-Id: I3b13842f018c6f23cbb5bc1c1cfd77e5c38dad98
2023-02-01 17:46:56 +00:00
Tony Wickham 4edce0100a Dispatch onAnimationStart and End to maintain proper state
The AnimatorPlaybackController from createLauncherStateFromSuwAnimation
does not ever get started (it's all user-driven) and thus some internal
state is not updated properly, namely mIsStashed is never set to false
even though the animation unstashes visually. This will break the first
"real" unstash animation after SUW. Thus, when the animation from SUW is
completed, we now dispatch onAnimationStart() and End() to ensure the
proper state is updated.

Test: adb shell am start -a android.intent.action.MAIN -n com.google.android.setupwizard/.SetupWizardTestActivity
  Then, skip to the end and swipe to home; ensure first app launch
  properly stashes taskbar
Fixes: 263533070
Change-Id: I9553b8a884fb84303e2e97f14b9a7051e9de4709
2023-02-01 16:18:18 +00:00
Thales Lima e9273ea743 Improvements for All Apps on different display sizes
Bug: 262912817
Test: DeviceProfileAlternativeDisplaysDumpTest
Change-Id: I50e980183b4d5c1a46cca8f1c867b866b9eae4b5
2023-02-01 11:34:12 +00:00
Jeremy Sim 0b4b89bdcf Fix bug with selecting a secondary task as second splitscreen app via Taskbar
This patch makes it so that the correct task will be chosen when selecting a second splitscreen app via Taskbar.

Prior to this patch, the Taskbar app selection function -- which attempts to match the tapped icon to a running TaskView -- assumed that the TaskView in question was always a solo (non-grouped) Task. This resulted in the wrong app being selected for split when the desired Task happened to be the secondary app in a pair.

Fixed by checking to see if the desired app is primary or secondary, and returning the correct Task, IconView, and ThumbnailView for the split operation.

Fixes: 265244769
Test: Manual
Change-Id: Ie1122d1b49151d70dec9711fe558fba7752b7d8e
2023-02-01 15:40:06 +08:00
Tony Huang eb8c32e009 Merge "Fix divider hidden delay if quick swipe to home" into tm-qpr-dev am: c3cb117b01 am: 8d3e1dbed9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21152801

Change-Id: I2c36ceb9bdca9c463014ac645d92af4578d7e0d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 05:23:22 +00:00
Tony Huang 8d3e1dbed9 Merge "Fix divider hidden delay if quick swipe to home" into tm-qpr-dev am: c3cb117b01
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21152801

Change-Id: Ifcb574e76cad43d8163a0d602f711c21f8a0a3b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 04:03:13 +00:00
Tony Huang c3cb117b01 Merge "Fix divider hidden delay if quick swipe to home" into tm-qpr-dev 2023-02-01 03:31:00 +00:00
Brian Isganitis ad68c00288 Merge changes Iaf02a42a,I8daf3c08 into tm-qpr-dev am: 1a4eb297ee am: 69fcae1207
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21161656

Change-Id: Id2bf69377541fe94d6fbb1c8cf45eb1ae6b94057
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 02:52:29 +00:00
Android Build Coastguard Worker c6b518c6ce Snap for 9546944 from 5fc8131b60 to udc-release
Change-Id: Iaec97539e949f5b8c4f5c9d74300a1e2f0e7abdd
2023-02-01 02:26:45 +00:00
Brian Isganitis 69fcae1207 Merge changes Iaf02a42a,I8daf3c08 into tm-qpr-dev am: 1a4eb297ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21161656

Change-Id: Ifa1ade1b50a767bdb4385c283848f6269b51d71b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 02:10:03 +00:00
Brian Isganitis 1a4eb297ee Merge changes Iaf02a42a,I8daf3c08 into tm-qpr-dev
* changes:
  Enable taskbar EDU tooltip flag.
  Add settings asset to persistent Taskbar tooltip.
2023-02-01 01:34:59 +00:00
TreeHugger Robot 91ee8468f8 Merge "Fix bug with trying to split an app with itself" into tm-qpr-dev am: 5107dff0eb am: a2edf995e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21152798

Change-Id: Ie2136fa614da3429e41d6a93ad2fe7e35a956bae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 00:52:34 +00:00
TreeHugger Robot a2edf995e1 Merge "Fix bug with trying to split an app with itself" into tm-qpr-dev am: 5107dff0eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21152798

Change-Id: I8f102c0c6a0bc14ba9a4cd47f966a656acca194a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 00:10:55 +00:00
TreeHugger Robot 5107dff0eb Merge "Fix bug with trying to split an app with itself" into tm-qpr-dev 2023-01-31 23:42:29 +00:00
Alex Chau 37a866f317 Merge "Clear PredictorState targets when it's re-registered" into tm-qpr-dev am: 2eacb5c601 am: 09ee64d7ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21150242

Change-Id: I209168e80c2efddb7a44fa7e9db00f8e207ce326
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 23:13:36 +00:00
Alex Chau 09ee64d7ec Merge "Clear PredictorState targets when it's re-registered" into tm-qpr-dev am: 2eacb5c601
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21150242

Change-Id: Ic043045cfc8e72e542e790f44cbb746b5f3c000b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 22:29:24 +00:00
Pat Manning 39ed8eecfd Merge "Make showing back for bouncer only rely on back disable status, not home and recents as well." into tm-qpr-dev am: f667823a8e am: 23aa4f8022
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21136526

Change-Id: Iec722d8821b90e3cb7021ba7d0a8d4076782f88a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 22:13:26 +00:00
TreeHugger Robot 52dc1d274f Merge "[QL-v3] Add feature flag." into tm-qpr-dev am: 71e2763b6e am: 26a421c11b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21049750

Change-Id: I5b9cea8b4e89a6aa7e1a47402ccf790402624e0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 22:12:48 +00:00
Brian Isganitis 7eb187b197 Enable taskbar EDU tooltip flag.
Test: Manual
Fix: 263157739
Change-Id: Iaf02a42a2ff02b25b5068c7241f894e586c42e1b
2023-01-31 14:07:56 -08:00
Brian Isganitis 7881b81aa7 Add settings asset to persistent Taskbar tooltip.
Test: Manual (3 button)
Bug: 263157739
Change-Id: I8daf3c08e48ef1f9ec190af301333d279878aa59
2023-01-31 14:07:34 -08:00
Alex Chau 2eacb5c601 Merge "Clear PredictorState targets when it's re-registered" into tm-qpr-dev 2023-01-31 21:59:14 +00:00
Ats Jenk f32f51794b Remove desktop tile from proto 1 of desktop windowing
Separate desktop tile in overview that groups together all open desktop
tasks, is only available with prototype 2. In prototype 1 of desktop
windowing, each task will show up as a separate tile.

Bug: 266711786
Test: with proto1 enabled, launch some apps, open overview and observe each
  app having their own tile
Test: with proto1 enabled, tap on any tile in overview and observe that
  task is added to existing apps on desktop
Change-Id: Ic9385ff047e0c8908a74d88f88ae5c46e0309cfd
2023-01-31 13:49:44 -08:00
Pat Manning 23aa4f8022 Merge "Make showing back for bouncer only rely on back disable status, not home and recents as well." into tm-qpr-dev am: f667823a8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21136526

Change-Id: I116f965bdd77c65e7a82abb55e7aa0ce6dadcf19
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 21:21:15 +00:00
TreeHugger Robot 26a421c11b Merge "[QL-v3] Add feature flag." into tm-qpr-dev am: 71e2763b6e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21049750

Change-Id: I61604fddc71f5aba0f36bb8c0df0774f09dba752
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 21:20:58 +00:00
Pat Manning f667823a8e Merge "Make showing back for bouncer only rely on back disable status, not home and recents as well." into tm-qpr-dev 2023-01-31 21:13:46 +00:00
TreeHugger Robot c59a5affa2 Merge "Add flag for new download app UI color and contrast update." into tm-qpr-dev am: fd02dce88f am: f97b031e78
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21151952

Change-Id: I0ea89012a34205fc9575817ff938a6a13b71d3c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 21:07:16 +00:00
TreeHugger Robot 71e2763b6e Merge "[QL-v3] Add feature flag." into tm-qpr-dev 2023-01-31 20:41:02 +00:00
TreeHugger Robot f97b031e78 Merge "Add flag for new download app UI color and contrast update." into tm-qpr-dev am: fd02dce88f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21151952

Change-Id: Iaa327ca4fb8b1cf110131c11126c311861a064f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 20:09:57 +00:00
Sunny Goyal 5fc8131b60 Merge "Introducing CellPosMapper which allows mapping between UI position and model position" into tm-qpr-dev am: 126ac14112 am: a19f661961
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21128574

Change-Id: Id2cdf2a5262def0401cd2a60fbe89044f55a9c98
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 19:30:30 +00:00
TreeHugger Robot 5bce035bb7 Merge changes I865871e5,Ie655de7a into tm-qpr-dev am: 6e21d310c1 am: 21c3aab5b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21074655

Change-Id: I5485085b18ffb98354d05ead2f3c9fc802ac4d1f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 19:29:11 +00:00
TreeHugger Robot 74d7d28965 Merge "Fix missing item decorator for the search recycler view" into tm-qpr-dev am: 1656f428b4 am: 76c0fd5427
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21151951

Change-Id: I3ea540e612d16eba1092f350be30144990b2ab31
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 19:28:55 +00:00
Alex Chau e5c1edb31b Clear PredictorState targets when it's re-registered
- After SUW, registerPredictor is called for hotseat, and then BaseLauncherBinder will call bindExtraContainerItems with empty items. A subsequent registerPredictor will then be triggered by LoadTask, but handleUpdate will skip the update due to no diff in PredictorState targets. As a result, HotseatPredictionController always have no items after SUW
- Clearing PredictorState when it's re-registerted will allow the respective prediction controller to receive new prediction items that comes with the registration.

Fix: 265340241
Test: Factory reset, pass SUW, prediction items are in hotseat
Test: Reboot, prediction items are in hotseat
Change-Id: Ie6e219028e7fde42854459d34806a04052dc41ba
2023-01-31 19:24:31 +00:00
Stefan Andonian 89d425ccae Move ViewCapture On/Off controls to QuickSettings Tile. am: 526e168906 am: ba7ed6c66c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20946024

Change-Id: I15edf5c9064893e8b07b55179b2d3546f7e1af7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 19:22:16 +00:00
TreeHugger Robot fd02dce88f Merge "Add flag for new download app UI color and contrast update." into tm-qpr-dev 2023-01-31 19:16:06 +00:00
Sunny Goyal a19f661961 Merge "Introducing CellPosMapper which allows mapping between UI position and model position" into tm-qpr-dev am: 126ac14112
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21128574

Change-Id: Ia74b38af165fa317c4d562730652f960026912a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 18:47:36 +00:00
Sunny Goyal 126ac14112 Merge "Introducing CellPosMapper which allows mapping between UI position and model position" into tm-qpr-dev 2023-01-31 18:20:35 +00:00
TreeHugger Robot 21c3aab5b3 Merge changes I865871e5,Ie655de7a into tm-qpr-dev am: 6e21d310c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21074655

Change-Id: I3253ef6d326b7b0dc2c20ee9f3679ca969bd39b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 18:04:58 +00:00
TreeHugger Robot 76c0fd5427 Merge "Fix missing item decorator for the search recycler view" into tm-qpr-dev am: 1656f428b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21151951

Change-Id: I2b720554906dc9cb2ce49aa6798a6fc94ef83553
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 18:04:40 +00:00
Stefan Andonian ba7ed6c66c Move ViewCapture On/Off controls to QuickSettings Tile. am: 526e168906
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20946024

Change-Id: I49c50822242162c940a6bbe7ac9a6487b500823b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 18:02:19 +00:00
TreeHugger Robot 6e21d310c1 Merge changes I865871e5,Ie655de7a into tm-qpr-dev
* changes:
  Fixes to VoiceInteractionWindowController
  Fix TaskbarBackgroundRenderer not being applied correctly in 2 cases
2023-01-31 17:52:55 +00:00
TreeHugger Robot 1656f428b4 Merge "Fix missing item decorator for the search recycler view" into tm-qpr-dev 2023-01-31 17:52:07 +00:00
Pat Manning 7462c2ab62 Make showing back for bouncer only rely on back disable status, not home and recents as well.
Fix: 260655218
Test: manual. Create second user, switch to three button nav, set lockscreen password, lock and show IME on lockscreen.
Change-Id: I1d874196afc24d5bae86d525a81ae199152fc750
2023-01-31 14:57:26 +00:00
Jeremy Sim c779ae54ce Fix bug with trying to split an app with itself
This patch fixes the following user flow:
1) App is already running
2) User initiates splitscreen from Home with that app
3) User selects the same app from Taskbar or AllApps

Previously, this caused a crash because the split-from-home initiation removed the corresponding app tile, causing a null pointer exception when the same task ID was used as a split target.

Fixed by adding a null check: if the target TaskView can't be found for any reason, fall back to launching the second app via Intent instead. If the app doesn't support multi-instance, the UI will now show an attempted split, followed by the message "This app can only be opened in 1 window."

Fixes: 263041522
Fixes: 266218404
Test: Manual
Change-Id: I39ed60c9ac758ac215391f0618f44f7fcee4f32c
2023-01-31 17:58:12 +08:00