Commit Graph

6104 Commits

Author SHA1 Message Date
Bill Lin 3cd0827e0b Merge changes I7b9e6e7f,I9729cd40 into sc-dev am: 51b35256d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800258

Change-Id: I49ebbfb13c1ab1fa96daa1d1a5f313f7b5c3b49f
2021-06-04 00:32:08 +00:00
Bill Lin a1221bcd53 2/ Notify adjust touch slop when one handed mode activated
When one handed mode activated, user swipe-up to exit usually
cross over the NavBar region, and then invoke TouchController
intercept touch event to trigger All Apps drawer on Home.

To enhanced the UX of gesture conflict of exit OHM & All Apps,
notify TouchController throught LauncherActivityInterface,
and Launcher dispatch onOneHandedModeStateChanged() event to
all mTouchControllers in DragLayer that touchController can
adjust the touch slop by it's SingleAxisSwipeDetector.

Test: manual trigger One handed mode and swipe-up to exit
Test: monitor minDisplacement of SingleAxisSwipeDetector
      OHM activated : touchSlop x multiplier
      OHM deactivated : touchSlop x 1
Test: check All Apps doesn't mis-trigger when exit one handed mode
Bug: 186235522
Change-Id: I7b9e6e7fa898231697d1866186a5f9b1717a9aa3
2021-06-04 01:44:51 +08:00
Bill Lin 945bb34b5e 1/ Provides feasibility to adjust touch slop in TouchController
There is a case when one handed mode triggered(Activated), all apps
drawer is very easy to trigger while user swipe up around NavBar
region to exit one handed mode. Since System Gesture monitor regsion
is small on screen bottom, swipe-up gesture usually cross over NavBar
monitor region and invoke launcher touch controller intercept touch
event and introduce unexpectedly trigger all apps drawer.

Adding onOneHandedModeStateChanged(boolean activated) for controller
be able to adjust the touch slop by multiplier, we can set a larger
multiplier when the visible window size translate become smaller
and make swipe gesture not too sensitive.

Test: manual swipe up to swich "home <-> all apps" and monitor
      minDisplacement of SingleAxisSwipeDetector
Test: Trigger one handed mode and swipe up to exit one handed mode
      check the minDisplacement of SingleAxisSwipeDetector
Bug: 186235522
Change-Id: I9729cd408d85b2b22582bf800e28d1471fc06980
2021-06-04 01:44:50 +08:00
Zak Cohen 15eb8fef8e Merge "RecentsView - reduce work in color tint animator" into sc-dev am: d7129fc919
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14803765

Change-Id: I05fdec6d737ac56f178aa000eee39e8686dfb673
2021-06-03 17:25:22 +00:00
Zak Cohen d7129fc919 Merge "RecentsView - reduce work in color tint animator" into sc-dev 2021-06-03 17:09:45 +00:00
Shawn Lin 38772ef664 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev am: cd0fe7b057
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14811742

Change-Id: Id2b2cbbc78f9c6e0ca66f8a8498500d723de8683
2021-06-03 12:02:51 +00:00
Shawn Lin cd0fe7b057 Merge "Detach the nav once the endTarget is determined as HOME" into sc-dev 2021-06-03 11:47:50 +00:00
shawnlin 2b006fb27b Detach the nav once the endTarget is determined as HOME
Bug: 189900722
Test: manual - swipe up to home from an app and observe the nav
Change-Id: I421de17fe4d8413deaf9ebd63166a6d2d00d096e
2021-06-03 13:06:42 +08:00
zakcohen da08cb2639 RecentsView - reduce work in color tint animator
Don't allocate animators when there is no animation to do. The work was
not required.

Bug: 189492167
Test: Local build, run and trace analysis
Change-Id: I111768b055ed636aa92d5d9d6b799f316a568380
2021-06-02 15:46:46 -07:00
TreeHugger Robot b41c1ee1c2 Merge "AssistContentRequester move binder call to background thread." into sc-dev am: 8c46bba98e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14801431

Change-Id: I933e2e77b266577ce2fcbddaf2c5f1813e6e664b
2021-06-02 20:39:56 +00:00
Pat Manning 8839849a54 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss) am: 49cb49b1f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14800534

Change-Id: Ic5e00180f93416ce9a83cb3ffeeea604d20f89a9
2021-06-02 20:39:52 +00:00
TreeHugger Robot 8c46bba98e Merge "AssistContentRequester move binder call to background thread." into sc-dev 2021-06-02 20:31:53 +00:00
zakcohen 243fbd3e5d AssistContentRequester move binder call to background thread.
The call into system server is synchronous, so make the call off the main
thread to avoid jank.

Bug: 189251291
Test: Local with flag enabled
Change-Id: I1787a0ad68488755bf19e813ecfe9fc079cfaed8
2021-06-02 10:33:31 -07:00
Pat Manning 49cb49b1f5 End drag touch event when crossing task drag threshold, and only when task is going up (drag to dismiss)
Test: manual
Fix: 188618115
Bug: 188618115
Change-Id: I51d157e224eaeee34ed131e4945bb92d6baf18cd
2021-06-02 16:28:25 +00:00
Wei Sheng Shih 262a3542f8 Merge "Read the starting surface icon size from framework" into sc-dev am: 630efccd7a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14609921

Change-Id: I975ebe8cc084bf2bd5b1c521bbdc48bfa45dd4b6
2021-06-02 10:07:22 +00:00
Wei Sheng Shih 630efccd7a Merge "Read the starting surface icon size from framework" into sc-dev 2021-06-02 10:00:22 +00:00
Lucas Dupin 8911c3eb53 Merge "Set blur on effect layer during app launch" into sc-dev am: ee4d67c52d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750658

Change-Id: I4749b4e26b3170cb3788ddd32eca37e9f290045f
2021-06-02 00:36:12 +00:00
Lucas Dupin ee4d67c52d Merge "Set blur on effect layer during app launch" into sc-dev 2021-06-02 00:32:52 +00:00
TreeHugger Robot d3fad6ab3d Merge "Adjust task menu text size and colors" into sc-dev am: 137323c299
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14792892

Change-Id: I4eedcf2aa5c7aefb9d15460c31bd8f12bf8a449b
2021-06-02 00:00:37 +00:00
TreeHugger Robot 137323c299 Merge "Adjust task menu text size and colors" into sc-dev 2021-06-01 23:50:40 +00:00
TreeHugger Robot 8b70486887 Merge "Revert "Add haptic feedback to Launcher recent apps scrolling"" into sc-dev am: f5af5ce11f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14793398

Change-Id: I630cd31bd9b9938a7d81480c25077ebc9e393c82
2021-06-01 23:49:06 +00:00
TreeHugger Robot f5af5ce11f Merge "Revert "Add haptic feedback to Launcher recent apps scrolling"" into sc-dev 2021-06-01 23:39:39 +00:00
Tony Wickham 723b4ccaec Merge "Fix duplicate depth animations when swiping from overview to home" into sc-dev am: 3cc2f46ca8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14792890

Change-Id: I5dc3d5c6d552a5c37b8719cda3645760a914b330
2021-06-01 23:38:17 +00:00
TreeHugger Robot fe576e3df0 Merge "Task Overlay - refresh task overlay on size change." into sc-dev am: a357d6da6d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14757953

Change-Id: I72b5dd0e88c0d059617627ca6e2d9390953b4a00
2021-06-01 23:38:11 +00:00
Tony Wickham 3cc2f46ca8 Merge "Fix duplicate depth animations when swiping from overview to home" into sc-dev 2021-06-01 23:17:36 +00:00
TreeHugger Robot a357d6da6d Merge "Task Overlay - refresh task overlay on size change." into sc-dev 2021-06-01 23:15:25 +00:00
Wale Ogunwale 0e25d2eba8 Revert "Add haptic feedback to Launcher recent apps scrolling"
This reverts commit b1ef5e5c55.

Reason for revert: b/182382085#comment4

Change-Id: I001944da64dc05324b14cc9dd3db5921faf8806c
Bug: 182382085
2021-06-01 22:10:18 +00:00
TreeHugger Robot da76d38a38 Merge "Cleanup state properly when interacting during gesture nav transition" into sc-dev am: b13200c6b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14735875

Change-Id: I305f899a5f8b9322f87ee14bbb9cae90947c5de6
2021-06-01 21:30:31 +00:00
Vinit Nayak 6ea5f721e5 Adjust task menu text size and colors
Fixes: 189855320
Fixes: 189855322
Change-Id: I0df4109f91ab09211b3cb5f3d18ad7374fa3f68c
2021-06-01 14:24:42 -07:00
TreeHugger Robot b13200c6b1 Merge "Cleanup state properly when interacting during gesture nav transition" into sc-dev 2021-06-01 21:02:29 +00:00
Tony Wickham 950388bf0e Fix duplicate depth animations when swiping from overview to home
- Add SKIP_DEPTH_CONTROLLER in OverviewToHomeAnim if WorkspaceRevealAnim is used, because WorkspaceRevealAnim already handles the depth.

Test: visual, and also log to ensure we only get one call to DepthController#setStateWithAnimation()
Fixes: 189060172
Change-Id: Ifb4ff3278272b3e98b4cf43bf94d6e108921ea80
2021-06-01 13:56:00 -07:00
Jonathan Miranda ecdf8bffd6 Merge "Update launcher content animation to spec." into sc-dev am: cdc73b512e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14757888

Change-Id: Id12349e299b1d3b54bd5af842bebeecedd676951
2021-06-01 19:48:42 +00:00
Jonathan Miranda 8e20aff6ee Merge "Turn off app close flag, Revert back to R implementation." into sc-dev am: d8035e1821
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14750661

Change-Id: I5ce3c0feb146c17ab36e9354de32b346a56a59e0
2021-06-01 19:48:37 +00:00
Alex Chau 79f1ae6f8d Merge "Ensure RecentsOrientedState.mRecentsRotation is up to date on swipe up" into sc-dev am: 5e13d36cba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14683793

Change-Id: I96d2366b063c4594bf7959ca6108b3eda57679e3
2021-06-01 19:48:20 +00:00
Jonathan Miranda cdc73b512e Merge "Update launcher content animation to spec." into sc-dev 2021-06-01 19:24:33 +00:00
Jonathan Miranda d8035e1821 Merge "Turn off app close flag, Revert back to R implementation." into sc-dev 2021-06-01 18:18:38 +00:00
Lucas Dupin 6e50860616 Set blur on effect layer during app launch
Test: manual
Fixes: 189207458
Change-Id: I8fabba92c6831c2fd54fe08156fc9a9b5d141a56
2021-06-01 11:07:17 -07:00
Alex Chau 5e13d36cba Merge "Ensure RecentsOrientedState.mRecentsRotation is up to date on swipe up" into sc-dev 2021-06-01 17:54:41 +00:00
zakcohen 7ce8f57530 Task Overlay - refresh task overlay on size change.
The task overlay should be refreshed on size change for rotation changes.

Bug: 187515688
Test: Local
Change-Id: I1a4fa6bfbc66b9d24cfa906184bdefb9067db5ae
2021-06-01 17:34:06 +00:00
Bill Yi a4adcbc8ed Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaaa324a8b618f499da8f48f819efec176e124e85
2021-05-31 10:53:02 +00:00
TreeHugger Robot 2b42b74c72 Merge "Force initialize task stack callback for gesture modes on init" into sc-dev am: e1a5d6bb1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14754620

Change-Id: I5da218ac42bdeabb8d37a65f4cc2ea91d82ddd0c
2021-05-28 16:33:03 +00:00
TreeHugger Robot 83cc258ac0 Merge "Adding more diags for WellbeingModel" into sc-dev am: db6b24a001
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14706421

Change-Id: I2b5e4815c7b109e875617721ab61dfa9f2d9d41b
2021-05-28 16:32:39 +00:00
Samuel Fufa f7677792d8 Merge "Remove AllApps prediction edu" into sc-dev am: bd883ea788
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14682074

Change-Id: I11f2a861adefcaa043cd8ec970941a99e7bb0b34
2021-05-28 16:20:46 +00:00
Jason Chang f4d5e89e18 Merge "Migrate trigger logic to fullfill new UI changes for One-handed mode settings." into sc-dev am: 9bc712f267
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14527644

Change-Id: I401f41875af153052bc6938ff3ab9794aabd1a36
2021-05-28 16:17:30 +00:00
Josh Tsuji d85076a9e0 Merge "Adds launcher-side support for the SmartSpace shared element transition." into sc-dev am: bdb4ed711c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14471950

Change-Id: I0d672be62055df2f83f5da7bfb4fe91570968c0c
2021-05-28 15:55:57 +00:00
Winson Chung d6b4593d9d Merge "Add missing call to finish the home animation" into sc-dev am: 9b45bce963
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14729812

Change-Id: I6a3c521f89bf09c067527420584e7b385291af9e
2021-05-28 15:55:16 +00:00
TreeHugger Robot 81c5b04026 Merge "Enable unpausing apps from the workspace." into sc-dev am: a07c2efdf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14704506

Change-Id: Idc9be34188dfc2048f8ef81d83b3eb0713bb3852
2021-05-28 15:55:10 +00:00
TreeHugger Robot 979bbae42d Merge "Update gesture nav colors and animation for dark/light theming" into sc-dev am: d50d21b602
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14722085

Change-Id: I7fa1b0b250fe2b7b75fb3fbda8474eaee99ae2d2
2021-05-28 15:55:00 +00:00
TreeHugger Robot a49d6f6540 Merge "Update colors for Digital Wellbeing Toast." into sc-dev am: 3558f084f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14737897

Change-Id: I7f944f7b87a1b903ae1a0e54b632cbae30662113
2021-05-28 15:54:51 +00:00
TreeHugger Robot 3e058e3314 Merge "Add haptic feedback to Launcher recent apps scrolling" into sc-dev am: b1858afaf2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14678275

Change-Id: Icb40cc97d3db516d385f1a32bdcefb047960c303
2021-05-28 15:54:46 +00:00