Commit Graph

14731 Commits

Author SHA1 Message Date
TreeHugger Robot
980f4deb93 Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-dev 2023-03-23 05:42:07 +00:00
Jon Miranda
071a196a77 Update nav bar buttons to spec.
Bug: 259712417
Test: manual
Change-Id: I9ec51dc99392e371c15e3918af239a0970809ec2
Flag: ENABLE_TRANSIENT_TASKBAR=true
2023-03-22 18:00:38 -07:00
Tracy Zhou
897e665852 Update home screen trackpad gesture behaviors
- 3-finger swipe up to go to overview
- 2-finger swipe down to pull down notifications
- 2-finger swipe up to open all apps

Fixes: 273972106
Test: manual
Change-Id: I61bd0ad98b21abeb5f9b00786fe358c03a49f539
2023-03-22 23:00:07 +00:00
Tony Wickham
89501aede7 Merge "Set PredictedAppIcon ring disabled when icon is disabled" into tm-qpr-dev am: f93aa98e3a am: b04aeba66b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22125079

Change-Id: Id47004d671ec6f4493217a9e50007b25296e1474
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 19:58:53 +00:00
Tony Wickham
b04aeba66b Merge "Set PredictedAppIcon ring disabled when icon is disabled" into tm-qpr-dev am: f93aa98e3a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22125079

Change-Id: I245d2ad27841078ceb09476f4c20608d06047753
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 19:20:31 +00:00
Jon Miranda
5945226515 Fix spring not springing when unstashing.
The spring animation was getting cancelled by the reset
animation.

Added a check to avoid creating a new reset animation if we
are already animating to the final value.

Bug: 273961611
Change-Id: I3afb62b89b5f6fbe920906499db2497ef8e94069
Flag: ENABLE_TRANSIENT_TASKBAR
Test: stash transient taskbar
2023-03-22 11:53:58 -07:00
Tony Wickham
f93aa98e3a Merge "Set PredictedAppIcon ring disabled when icon is disabled" into tm-qpr-dev 2023-03-22 18:46:56 +00:00
Jon Miranda
4e8730f8e9 Merge "Update start radius for reveal animation to match spec." into tm-qpr-dev am: 0a6356a5ea am: dc3e4c972d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22188102

Change-Id: I1ee7430d3eff46b1c8d1331e6457e680f41593d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 18:40:59 +00:00
Jon Miranda
dc3e4c972d Merge "Update start radius for reveal animation to match spec." into tm-qpr-dev am: 0a6356a5ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22188102

Change-Id: I052941fca6d5def9bd9a7a37a0b0d0a8c287af69
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 17:44:18 +00:00
Tony Wickham
1e29b04f19 Set PredictedAppIcon ring disabled when icon is disabled
Test: drag a predicted app from taskbar, ensure both ring and icon are
set to grayscale
Fixes: 268759548

Change-Id: I764ebcd486c09eceaf30c5bd5153a1dd2ff5be72
2023-03-22 16:53:10 +00:00
Jon Miranda
0a6356a5ea Merge "Update start radius for reveal animation to match spec." into tm-qpr-dev 2023-03-22 16:51:27 +00:00
Tony Wickham
38e185ddcb Merge "Restore proper nav buttons translation when taskbar is recreated" into tm-qpr-dev am: 3292947a73 am: 75a0c72d00
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22090087

Change-Id: I7e4613202ceaa9e66e4592438668fadb057fc993
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 16:26:40 +00:00
Mike Schneider
2736f2ed5b Do not play unstash animation when unlocking the device am: 94f46e14f4 am: 14db451c21
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22119728

Change-Id: I201404e1642a22dabae740e01d4b8bd06d36ca3b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 16:18:10 +00:00
Tony Wickham
75a0c72d00 Merge "Restore proper nav buttons translation when taskbar is recreated" into tm-qpr-dev am: 3292947a73
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22090087

Change-Id: Ic3fd82b74858b62456f40ed7426ad98a9eac825b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 15:35:51 +00:00
Mike Schneider
14db451c21 Do not play unstash animation when unlocking the device am: 94f46e14f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22119728

Change-Id: I03a41c526338a77c53c2bffec5a964fbb5206aa3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 15:35:04 +00:00
Tony Wickham
3292947a73 Merge "Restore proper nav buttons translation when taskbar is recreated" into tm-qpr-dev 2023-03-22 15:27:00 +00:00
Riddle Hsu
01a41a2bef Remove workaround of delaying remove task
The timing doesn't work on the latest code base. The onStop
of activity still almost has no chance to be called after
swiping the task to kill process.

And the friendly activity lifecycle will be controlled by
removeTask since Id69a8ba77da16a13f7a3413bb004fc2206f4b4e8.

Bug: 184899234
Bug: 213583589
Test: No behavior change after swiping task out from recents
Change-Id: If4110069834964571df7128b119fc6c782a03b34
2023-03-22 22:26:16 +08:00
Bill Yi
9988e9e1fd Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id8fbed7faf52450df74992bffd44a7a26129ba3a
2023-03-22 06:27:22 -07:00
Bill Yi
7f54820ce6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I41875ec4d733b6fa8c98404797cb67114d2e5650
2023-03-22 06:26:50 -07:00
Mike Schneider
4374b4ffde Merge "Do not perform invisible transitions while the screen is off." into tm-qpr-dev am: 42a8fe91db
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21699905

Change-Id: Idc2d27107db630a617102b83f819b5381242f8c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 08:43:55 +00:00
Mike Schneider
94f46e14f4 Do not play unstash animation when unlocking the device
The unstash is ignored by TaskbarStashController, while the TaskbarLauncherStateController positions the hotseat on the launcher correctly without animation.

Since the TaskbarStashController is used even with 3p launchers, both of these actors keep track of whether the device is locked independently, based on the SysUI flags.

Bug: 270139677, 266890635, 274084408
Test: manually, Tapl
Change-Id: Iae94522b5d57cc89c9a4d219ad1254b150a3400d
2023-03-22 09:10:03 +01:00
Mike Schneider
42a8fe91db Merge "Do not perform invisible transitions while the screen is off." into tm-qpr-dev 2023-03-22 08:04:09 +00:00
Jon Miranda
7d81e0c4aa Merge "Fix bug where taskbar jumps when double swiping up." into tm-qpr-dev am: 9e593747e9 am: d98af9ae14
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22184665

Change-Id: I67dcbba4574d47dc38c79fde5d4022f3b70292f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 05:56:35 +00:00
Tracy Zhou
a2871844d1 Merge "Disable 3-finger workspace scroll" into udc-dev 2023-03-22 05:53:20 +00:00
Jerry Chang
99696bcaf7 Consolidate split divider show/hide behavior
Consolidate split divider show/hide behavior by hiding the divider bar
at a single point where the tasks actually start moving. So it won't
need to deal with hiding the divider before the animation targets ready.
Also prevents to hide the divider too early when users were just
unstashing the taskbar.

Fix: 261376202
Test: http://recall/-/fLARJNt42LVxc3tt86SneW/colHl9bXqOzppYV5o2Hmjh
Change-Id: I2b7b37c2b20cc379581b34c0104fa45246c27e8f
2023-03-22 05:48:49 +00:00
Jon Miranda
d98af9ae14 Merge "Fix bug where taskbar jumps when double swiping up." into tm-qpr-dev am: 9e593747e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22184665

Change-Id: Iceabe18b795d9e4bc63989532e351aaec0a7f38b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 05:20:05 +00:00
Jon Miranda
9e593747e9 Merge "Fix bug where taskbar jumps when double swiping up." into tm-qpr-dev 2023-03-22 04:48:23 +00:00
Jon Miranda
7953f25c3c Merge "Add spring animation when stashing transient taskbar." into tm-qpr-dev am: ba85154590 am: 9c0ad5f746
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22178236

Change-Id: Ibec649f0c7d6181ac52e2067898fe4b0b82f01a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 03:46:12 +00:00
Jon Miranda
9c0ad5f746 Merge "Add spring animation when stashing transient taskbar." into tm-qpr-dev am: ba85154590
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22178236

Change-Id: I87a3e770928564eb02ddd0802814ac1f896d78bb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 03:09:40 +00:00
Jon Miranda
ba85154590 Merge "Add spring animation when stashing transient taskbar." into tm-qpr-dev 2023-03-22 02:34:46 +00:00
Tracy Zhou
a33fb69603 Disable 3-finger workspace scroll
Fixes: 274474023
Test: 3-finger horizontal scroll on the workspace doesn't do anything
Change-Id: I32ade8a5c26eae43f5ce9c8c71d47ed0d1abd5a2
2023-03-21 17:17:35 -07:00
Jeremy Sim
e71032e2cf Merge "Fix bug where Taskbar was not auto-hiding after splitscreen launch from icon menu" into tm-qpr-dev am: 3c8def9f88 am: ce97be3d12
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22077752

Change-Id: I38ab3fedc4a6cbb164a8b0f8e5a8be8f1c4a4aea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-22 00:15:48 +00:00
Jeremy Sim
ce97be3d12 Merge "Fix bug where Taskbar was not auto-hiding after splitscreen launch from icon menu" into tm-qpr-dev am: 3c8def9f88
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22077752

Change-Id: I9563711ed0b857616a559a7f07486c4da3b0c0d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 23:58:07 +00:00
Jeremy Sim
3c8def9f88 Merge "Fix bug where Taskbar was not auto-hiding after splitscreen launch from icon menu" into tm-qpr-dev 2023-03-21 23:34:34 +00:00
Jon Miranda
784a6466de Merge "Fix issue where two translation animations clobber each other." into tm-qpr-dev am: 56e660c6f3 am: 43102d323b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22167061

Change-Id: I66458f6c7da14296a71e1a9447544fa2d021a4e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 22:20:18 +00:00
Jon Miranda
cb3fc6b07c Update start radius for reveal animation to match spec.
Bug: 273961611
Change-Id: I3330b8b2ec47d7e9608b900a859d2a865f92a994
Flag: ENABLE_TRANSIENT_TASKBAR
Test: stash/unstash
2023-03-21 14:52:58 -07:00
Jon Miranda
43102d323b Merge "Fix issue where two translation animations clobber each other." into tm-qpr-dev am: 56e660c6f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22167061

Change-Id: I421382612f9175d45a059519085f29d45acc7d18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 21:43:49 +00:00
Jeremy Sim
8eed87ac89 Fix bug where Taskbar was not auto-hiding after splitscreen launch from icon menu
This patch fixes a bug where the transient Taskbar was not hiding properly after splitscreen was initiated. When the user is inside an app and launches splitscreen by longpressing on a Taskbar icon and selecting the split button, the transient Taskbar should hide right away. This is an equivalent action to dragging the Taskbar icon up to create a split, and should hide the Taskbar so that other UI elements (like system-level toasts and error messages) can be seen.

The bug occurred because updateAndAnimateTransientTaskbar() is not being called in this specific code path to stash the Taskbar.

Fixed by adding a new call to updateAndAnimateTransientTaskbar upon clicking the splitscreen menu button.

Fixes: 272292897
Test: Manual
Change-Id: I64a9acfc41ddcaba4d9f43eb216458de44b4c9a4
2023-03-21 14:35:36 -07:00
Jagrut Desai
c1d6f9aaf4 Merge "Clear Accessibility Focus from Taskbar Icon after Shorcut Menu invoked" into tm-qpr-dev am: be58eb2cde am: 3a4f5a61d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22168022

Change-Id: I75119757ac7f1be69d69bbb015a968e8ac09388d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 21:23:00 +00:00
Mike Schneider
308b7849db Do not perform invisible transitions while the screen is off.
This change caches whether launcher was active at the time of the screen
off, and assumes this last state when the screen is actually off.

While trying to understand the code, I renamed a couple class-internal
methods and flags, plus added comments. If they are not accurate, its
due to a misunderstanding on my part, and I will gladly revisit and
check whether all the assumptions I made still hold.

Bug: 261418621
Test: manually

Change-Id: I2ad25caf478100781a063c356c5fd2d20d3e1917
Merged-In: I2ad25caf478100781a063c356c5fd2d20d3e1917
2023-03-21 21:02:55 +00:00
Mike Schneider
7301665d6c Merge "Do not perform invisible transitions while the screen is off." into udc-dev 2023-03-21 21:02:07 +00:00
Jon Miranda
56e660c6f3 Merge "Fix issue where two translation animations clobber each other." into tm-qpr-dev 2023-03-21 20:58:23 +00:00
Jagrut Desai
3a4f5a61d0 Merge "Clear Accessibility Focus from Taskbar Icon after Shorcut Menu invoked" into tm-qpr-dev am: be58eb2cde
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22168022

Change-Id: I40eb8a9fed8389a41a9c7ff0e5749ab93c15ae29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 20:26:27 +00:00
Jagrut Desai
be58eb2cde Merge "Clear Accessibility Focus from Taskbar Icon after Shorcut Menu invoked" into tm-qpr-dev 2023-03-21 19:58:11 +00:00
Jon Miranda
c3bb65a045 Fix bug where taskbar jumps when double swiping up.
Bug: 273948325
Change-Id: Ib3f19f4bf7348cd3545864351d48780dbc9acd65
Flag: ENABLE_TRANSIENT_TASKBAR
Test: swipe up to unstash taskbar, quickly swipe up again
2023-03-21 12:05:47 -07:00
Tony Wickham
5513239387 Merge "Update folder leave-behind color for taskbar" into tm-qpr-dev am: 0165aa82c6 am: f497c59b5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21968430

Change-Id: Ie80383899e7881512b4434f72a43df7328f36113
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 18:43:20 +00:00
Tony Wickham
f497c59b5e Merge "Update folder leave-behind color for taskbar" into tm-qpr-dev am: 0165aa82c6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21968430

Change-Id: Ifd652848a3006de0c975410623ed3f59c8f17023
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-21 18:04:28 +00:00
Jon Miranda
3344ec7004 Add spring animation when stashing transient taskbar.
Bug: 273961611
Change-Id: I35a658a5e30a155094a48effdefc3895f45e0483
Flag: ENABLE_TRANSIENT_TASKBAR
Test: stash transient taskbar
2023-03-21 10:25:48 -07:00
Evan Rosky
fa06c90dc4 Merge "Move recents animation controller to shell" into udc-dev 2023-03-21 17:19:25 +00:00
Jon Miranda
aa08a59f92 Fix issue where two translation animations clobber each other.
Internal implementation of AnimatedFloat ensures only one
animation plays at a time.

Bug: 273961611
Change-Id: Idc86dba3ac0a085e7cb6b3a979d5b098b75b62b8
Flag: ENABLE_TRANSIENT_TASKBAR
Test: swipe from overview to home
2023-03-21 17:12:52 +00:00