Commit Graph

13651 Commits

Author SHA1 Message Date
Nicolò Mazzucato
4afab0b210 Merge "Cancel unfold animation when rotation changes" into tm-qpr-dev 2022-10-13 23:06:50 +00:00
Vinit Nayak
0f6526e0c4 Improve TaskMenuView layouts for split pairs
* Instead of basing calculations on the TaskView view,
use the TaskThumbnailView as the anchor.
This helps us prevent having to re-calculate positions
that were already done to layout the thumbnails
* TODO: Gracefully handle re-positioning task menu view
on rotation

Bug: 249693334
Test: Manual, opening task menu view in
land/seascape in portrait, w/ and w/o home rotation

Change-Id: I02da96d2735657d5340e23056de69392ff8452c4
2022-10-13 14:15:14 -07:00
Alex Chau
3868775549 Merge "Only support manual stashing while in app" into tm-qpr-dev am: e966537123 am: 2104aac3bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20178104

Change-Id: I9f35db00fa8b4017207ad3ecaa3a3aa02a626ec2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 14:51:55 +00:00
Alex Chau
2104aac3bb Merge "Only support manual stashing while in app" into tm-qpr-dev am: e966537123
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20178104

Change-Id: I786bdf2d70a89368ce790c4bcefd62f8ac261496
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 14:19:12 +00:00
Alex Chau
e966537123 Merge "Only support manual stashing while in app" into tm-qpr-dev 2022-10-13 13:48:46 +00:00
Nicolo' Mazzucato
74c3a0024b Cancel unfold animation when rotation changes
In DeviceFoldStateProvider.kt, FOLD_UPDATE_FINISH_HALF_OPEN is emitted if the rotation changes while the animation is in progress.

 This targets the case when the device goes to tabletop mode during the transition.

+ Using RotationChangeProvider to fix problems when the new orientation change was received in a background thread unexpectedly. This fixes: (1) wrong launcher icons movement after the rotation, and (2) wrong dark overlay scrim after rotation.

+ Minor formattig fixes by ktfmt

Bug: 241743859
Test: DeviceFoldStateProviderTest && NaturalRotationUnfoldProgressProviderTest && manual stress testing
Change-Id: Iee234e4b832cad8298b69356fce7c14d75e89ccc
2022-10-13 09:16:44 +00:00
TreeHugger Robot
09b3d0609f Merge "Desktop tile that is a snapshot of desktop" into tm-qpr-dev am: 24dd3f57b2 am: 97c4e6d04d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20027847

Change-Id: I412f8cd5ce2fc3383e9f7f08e254ff42efddd78b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 21:51:23 +00:00
TreeHugger Robot
97c4e6d04d Merge "Desktop tile that is a snapshot of desktop" into tm-qpr-dev am: 24dd3f57b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20027847

Change-Id: I85c9d13c4a1bf329ae68aaf3984aa40859ac89f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 21:30:10 +00:00
TreeHugger Robot
24dd3f57b2 Merge "Desktop tile that is a snapshot of desktop" into tm-qpr-dev 2022-10-12 21:10:16 +00:00
Evan Rosky
985f7de915 Revert^2 "Enable Shell Transitions"
2be4e88eda

Change-Id: I8cd0d125ecaa8201bf5d9c8e087f1c5c901e1fa0
2022-10-12 21:06:38 +00:00
Yein Jo
632468dc00 Merge "Revert "Enable Shell Transitions"" 2022-10-12 21:00:05 +00:00
Yein Jo
2be4e88eda Revert "Enable Shell Transitions"
Revert "Enable Shell Transitions"

Revert "Enable Shell Transitions"

Revert "Enable Shell Transitions"

Revert submission 19199517-enable_shell_transit

Reason for revert: DroidMonitor-triggered revert due to breakage, bug b/253049434 b/253109117 b/253181889 b/253271977
Reverted Changes:
I85f9565b3:Enable Shell Transitions
I75d0fe964:Enable Shell Transitions
I0565e423a:Enable Shell Transitions
I98bf8f0aa:Enable Shell Transitions

Change-Id: I6ad85a8f8168cdd40cb66eb58b9ea6a936bc2315
2022-10-12 20:57:48 +00:00
Alex Chau
38dae63910 Only support manual stashing while in app
- For taskbar in overview, don't allow stashing

Fix: 253042515
Test: With taskbar in overview, long press do nothing. Taskbar is still stashable in app
Test: Without taskbar in overview, taskbar still transform to nav handle in overview
Change-Id: I8f353a473a8570df72acda2338c4b984a69dc5c0
2022-10-12 18:16:50 +01:00
Sebastian Franco
d468299c0f Moving the class LayoutParams to a file outside CellLayout
I'm moving the LayoutParams to another file to start the decoupling
of the Reorder outside of the CellLayout.

Also, I change the name from LayoutParams to LauncherLayoutParams to prevent confusion with ViewGroup.LayoutParams making it explicit that this are different LayoutParams.

Bug: 188081026
Test: atest ReorderWidget
Change-Id: I92251c5540ffcf5ece7b933e6f6c836eb825c997
2022-10-12 16:14:42 +00:00
Evan Rosky
3ecceb8680 Merge "Enable Shell Transitions" 2022-10-12 16:08:27 +00:00
Pat Manning
de2aefe5d6 Merge "Use wm shell splash screen animation to reveal app after tasks have appeared." into tm-qpr-dev am: a283b551d2 am: e793bac632
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19886384

Change-Id: I6474fc429e326bfedad7813b5b11ad5aa217492e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 11:55:47 +00:00
Pat Manning
e793bac632 Merge "Use wm shell splash screen animation to reveal app after tasks have appeared." into tm-qpr-dev am: a283b551d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19886384

Change-Id: Ia8968e6ec48f3e877ba020d0498afa0520248324
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 11:53:12 +00:00
Pat Manning
a283b551d2 Merge "Use wm shell splash screen animation to reveal app after tasks have appeared." into tm-qpr-dev 2022-10-12 11:34:41 +00:00
TreeHugger Robot
61d513fa56 Merge "First pass at Taskbar layout UI polish for SUW" into tm-qpr-dev am: 5c4b6b50d7 am: dd1a143a29
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20086056

Change-Id: I75f2750949b10f690f1210fef85aeb98342f4452
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 03:37:39 +00:00
TreeHugger Robot
dd1a143a29 Merge "First pass at Taskbar layout UI polish for SUW" into tm-qpr-dev am: 5c4b6b50d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20086056

Change-Id: I785f86e0daa82618a03c1633ea0efc710e482139
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 03:04:33 +00:00
TreeHugger Robot
5c4b6b50d7 Merge "First pass at Taskbar layout UI polish for SUW" into tm-qpr-dev 2022-10-12 02:27:37 +00:00
TreeHugger Robot
1bfe930931 Merge "Add debug logs to help identify when setRecentsAttachedToAppWindow will not animate properly." into tm-qpr-dev am: 1337b31b3f am: 997edd2dad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20076231

Change-Id: I04ee6b7e1cd23991f46c28395471ecbaebc86424
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 01:22:52 +00:00
TreeHugger Robot
997edd2dad Merge "Add debug logs to help identify when setRecentsAttachedToAppWindow will not animate properly." into tm-qpr-dev am: 1337b31b3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20076231

Change-Id: I47588e0653e55228b0ba42b288ae437b29e38e9d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-12 00:51:03 +00:00
TreeHugger Robot
1337b31b3f Merge "Add debug logs to help identify when setRecentsAttachedToAppWindow will not animate properly." into tm-qpr-dev 2022-10-12 00:17:33 +00:00
Vinit Nayak
2081742cb7 First pass at Taskbar layout UI polish for SUW
Bug: 231906478
Change-Id: I5d55d1e33f928d4b8034c356565a0f9d8bc5c3fb
2022-10-12 00:04:27 +00:00
Schneider Victor-tulias
a0be92c830 Add debug logs to help identify when setRecentsAttachedToAppWindow will not animate properly.
Bug: 244593270
Test: Manually checked logs
Change-Id: Ie6d0395a45a025d1562a722154d3dd3b42618ccc
2022-10-11 15:12:13 -07:00
Brian Isganitis
56d4571bbf Merge "Move recents controller to end of params for easier merging." 2022-10-11 20:53:44 +00:00
Alex Chau
de1d8456d3 Merge "Fix positioning of split instruction and share targets with taskbar in overview" into tm-qpr-dev am: e2791f0cf6 am: 94183eeaf9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20132885

Change-Id: I67023a798eeba419834cdc91a89b3dc2e3b9aee1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 15:05:01 +00:00
Alex Chau
94183eeaf9 Merge "Fix positioning of split instruction and share targets with taskbar in overview" into tm-qpr-dev am: e2791f0cf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20132885

Change-Id: I563d31986ece6169cfe6cfca8f815b611277ba6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-11 14:33:16 +00:00
Alex Chau
e2791f0cf6 Merge "Fix positioning of split instruction and share targets with taskbar in overview" into tm-qpr-dev 2022-10-11 14:04:57 +00:00
Alex Chau
0733ebd3c1 Run setCurrentPage in applyLoadPlan after scroll initialized
- Also combined the 2 setCurrentPage call in applyLoadPlan into 1
- Otherwise setCurrentTask may set to page 1 unexpectedly due to page 0's scroll being invalid and out of range

Bug: 246283207
Bug: 238461210
Test: Split screen with 2 apps, click back, go to overview again, should snap to focsued task
Change-Id: I3b57655c810668fe244659437fbd4a745ca02d21
2022-10-11 12:36:35 +01:00
Brian Isganitis
67c20e0d99 Move recents controller to end of params for easier merging.
Test: Compiles
Fix: 252899814
Change-Id: I7c6a464b0d6b40bbda9b4fae3da153629e4346dc
2022-10-10 17:48:51 -07:00
Ats Jenk
3c59d9b345 Desktop tile that is a snapshot of desktop
Create a desktop recents tile that shows a snapshot of the freeform
tasks running on desktop.
Scales them down and positions them in the same location as they would
be on the desktop.

Bug: 244348395
Test: manual
Change-Id: Ieb5830a331691844769003189f557c4b7e4cd35c
2022-10-10 15:50:31 -07:00
Alex Chau
c158a82510 [conflict] Merge "Fix taskbar in overview touch and stash behavior" into tm-qpr-dev am: 86924eed57 am: d77f086d72
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20109655

Fix: 252741056
Change-Id: I4d2463d409b1bc1c572b6ba68064a8c5147fde8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 16:33:21 +00:00
Thales Lima
a0090d2585 Merge "Remove KtR workaround" 2022-10-10 10:32:04 +00:00
Alex Chau
d77f086d72 Merge "Fix taskbar in overview touch and stash behavior" into tm-qpr-dev am: 86924eed57
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20109655

Change-Id: I09eaa2d3e85bfceed6dbd432097d20e6f8d26aed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-10 10:24:29 +00:00
Alex Chau
86924eed57 Merge "Fix taskbar in overview touch and stash behavior" into tm-qpr-dev 2022-10-10 10:02:12 +00:00
Alex Chau
8949c583ee Fix positioning of split instruction and share targets with taskbar in overview
- When taskbar is in overview, overview actions has dedicated space and no need to align to nav buttons
- Add a bottom margin to split instruction and share targetse that is equal to the space below overview actions

Bug: 245320601
Test: Test split select and share target with different screen sizes
Change-Id: I6aec325da9cc4c43c84ba8bed5f0e087c57d6925
2022-10-08 10:15:58 +01:00
Winson Chung
92d8335efa Merge "Update constants used for resolving shell services" into tm-qpr-dev am: 0c1dfbc1d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20058025

Change-Id: I1246025016560225e2fbc55835ae41192dcff343
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 17:07:36 +00:00
Winson Chung
0c1dfbc1d8 Merge "Update constants used for resolving shell services" into tm-qpr-dev 2022-10-07 16:55:55 +00:00
Jeremy Sim
93e0d50b40 Merge "Use correct interpolator for tablet split confirm" into tm-qpr-dev am: 65d95a8dae am: 78bb2a4850
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20130929

Change-Id: I1906946336bffe8889c36f9043b120ff38fe81bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 14:34:06 +00:00
Jeremy Sim
a3bab991e9 Merge "Fix bug with DWB banners causing Action Bar to vanish" into tm-qpr-dev am: 15bab334cc am: e0b3e263c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20124476

Change-Id: I73e868fa66a3b72a7d7aed8c720b53da7fca845f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 14:31:58 +00:00
Alex Chau
7a72217ebc Merge "Add logging to help debug flake when swiping home to overview." into tm-qpr-dev am: b7b88b66bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19570889

Change-Id: I225de5cbd96ab12ddb07e18bac72537efd14e504
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 13:59:53 +00:00
Jeremy Sim
78bb2a4850 Merge "Use correct interpolator for tablet split confirm" into tm-qpr-dev am: 65d95a8dae
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20130929

Change-Id: I7aff10b877477b9cb77279a5e1d5b79213706c60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 13:57:35 +00:00
Jeremy Sim
e0b3e263c3 Merge "Fix bug with DWB banners causing Action Bar to vanish" into tm-qpr-dev am: 15bab334cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20124476

Change-Id: If96e3cf116419fc128b698ca0c00be95ac94f467
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 13:54:10 +00:00
Thales Lima
51e164688e Remove KtR workaround
Bug: 229947409
Test: m -j128 Launcher3QuickStep Launcher3QuickStepGo Launcher3 Launcher3Go NexusLauncherRelease NexusLauncherDebug SearchLauncherQuickStep SearchLauncher LauncherGoGoogle
Change-Id: I5792cc6b30dfa856747a1576ef3cb195952c25c7
2022-10-07 11:29:16 +00:00
Alex Chau
b7b88b66bb Merge "Add logging to help debug flake when swiping home to overview." into tm-qpr-dev 2022-10-07 11:24:43 +00:00
Jeremy Sim
65d95a8dae Merge "Use correct interpolator for tablet split confirm" into tm-qpr-dev 2022-10-07 08:20:58 +00:00
Jeremy Sim
15bab334cc Merge "Fix bug with DWB banners causing Action Bar to vanish" into tm-qpr-dev 2022-10-07 08:20:16 +00:00
Jerry Chang
b1d38aa2a8 Merge "Support starts a pair of intent/shortcut and task to split" into tm-qpr-dev am: 21373a8521 am: a61d270791
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20111333

Change-Id: I8836d0a92f041054b26c44985af6f06ec7f873a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-07 05:26:55 +00:00