Commit Graph

20478 Commits

Author SHA1 Message Date
Samuel Fufa dc3eb8642b Merge "Personalize hotseat education" into ub-launcher3-master 2020-03-25 19:43:57 +00:00
Josh Tsuji 1e080b8c2b Merge "Ignore system gestures while bubbles are expanded." into ub-launcher3-master 2020-03-25 14:16:48 +00:00
vadimt 77e3e87038 Merging from ub-launcher3-master @ build 6327709
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_rvc-dev_6327709.html

Change-Id: I0a135e14daf3671648f02999da13d323efb5fe81
2020-03-25 06:06:46 +00:00
Samuel Fufa aa2aff5a8f Personalize hotseat education
If a user has has 0 apps in the hotseat, jump directly to showing predications.
Otherwise show migration dialog as usual and if user rejects it, show different tips based on the number of available spots.

Bug: 142753423
Test: Manual
Change-Id: Ic5202caf074db2409f6468dd9373875571f3f3c1
2020-03-24 18:37:30 -07:00
TreeHugger Robot b2f76460b6 Merge "Removing base no-op implementation of depth controller" into ub-launcher3-master 2020-03-24 23:43:49 +00:00
Sunny Goyal 284a6cfdd7 Removing base no-op implementation of depth controller
Change-Id: Ibf46c0a147d2772033ad469b803e606376978cd7
2020-03-24 16:11:06 -07:00
Winson Chung 005fa3f5a7 Remove extra binder calls when not detecting gestures
- Previous refactoring meant that we were always fetching the running
  task to update the gesture state, even when you touch down in an
  area that is not in the gesture region (which is unnecessary).
  Also only transforming touch events (currently causes allocations)
  when we are actually handling a gesture.

Change-Id: I32e21c3e4d7113a782afce593711d9df62551bc8
2020-03-24 15:11:58 -07:00
Samuel Fufa 0570a795f9 enable prediction logging
reverting accidental commit on ag/10673926

Bug: 142753423
Change-Id: I8d2f5f591b200484282f0b170fccab4f99b93fae
2020-03-23 20:22:41 -07:00
Winson Chung 8e714d42ae Update launcher call to fetch recent tasks
- Always just fetch the tasks that will end up in recents

Bug: 152133859
Test: Manual, swipe up with pip/assistant and verify nothing
      changed
Change-Id: I41719e111cba85da7e93f65681b7b50b4c5c4a46
2020-03-23 14:17:22 -07:00
Joshua Tsuji d763a40b7a Ignore system gestures while bubbles are expanded.
This flag is set by System UI in ag/10760162, when bubbles are expanded. We want to disallow system gestures from starting when bubbles are expanded, since otherwise a swipe up will both close the bubbles, and the app behind them.

Test: install launcher, add bubbles, open an app, expand bubbles, observe that swiping up only closes bubbles
Test: same but in three button nav, home button should both close bubbles + the app behind it
Bug: 146167884
Change-Id: I27ed225d2029e3cb82f4959739c7b6f25fe8adb7
2020-03-23 15:05:45 -04:00
Andy Wickham b55d5b279b Merge "Adds back gesture recognition to Sandbox." into ub-launcher3-master 2020-03-20 20:23:16 +00:00
Winson Chung 925639d881 Merge "Fixing TouchInteractionService referring destroyed activity" into ub-launcher3-master 2020-03-20 19:04:26 +00:00
Evan Rosky 39cbf97f64 Merge "Update window threshold in both directions" into rvc-dev 2020-03-20 18:20:15 +00:00
TreeHugger Robot 20035f1803 Merge "Migrate hotseat items into a folder" into ub-launcher3-master 2020-03-20 03:52:26 +00:00
Samuel Fufa 82bbdaceae Migrate hotseat items into a folder
If feature flag HOTSEAT_MIGRATE_TO_FOLDER is enabled, this moves hotseat
items into a folder in the workspace. If not, it moves the whole hotseat
to the first workspace page that can host the hotseat.

Bug: 151099421
Test: Manual
Change-Id: I49f6a22a0ada2c4cf237ca91a323a46346a11a59
2020-03-19 20:10:14 -07:00
Winson Chung 7d020f7da1 Update window threshold in both directions
- Only use the task flags when we should be using the home screen state

Bug: 151181674
Test: Move gesture below threshold and observe split minimize
Change-Id: I1b0f682eb9c2861b36953da7695c798c187db517
2020-03-19 19:40:39 -07:00
Tony Wickham 5de624c286 Merge "Support blacklisting live wallpapers from showing sysui scrims" into ub-launcher3-master 2020-03-20 01:31:35 +00:00
Andy Wickham 3e34dd3791 Adds back gesture recognition to Sandbox.
This is used to step through the "happy path" of the existing
back tutorial steps (right edge and left edge). Unlike in the
Pixel Tips app, the tutorial only continues if you perform the
gesture from the correct edge of the screen.

This also lays the groundwork to provide helpful tips if the
expected gesture is performed incorrectly, although currently
such gestures are just ignored.

Demo: https://drive.google.com/open?id=12S42mZQITGzIWnj7mP1L__PCOgAQcjgp

Bug: 148542211
Change-Id: Ib2e0b2ff7c021db48c96d58e1370fa2e93330912
2020-03-20 01:01:49 +00:00
TreeHugger Robot c21eb0f483 Merge "[Overview Actions] Hide overview actions when swipe down to launch app." into ub-launcher3-master 2020-03-19 23:48:30 +00:00
Tony Wickham d6f917f182 Support blacklisting live wallpapers from showing sysui scrims
Add wallpaper changed broadcast receiver to BaseDragLayer, which
checks if the new wallpaper is blacklisted and relays that to
remove the scrims.

Bug: 150144115
Change-Id: I55b7b98fdd419cd76532492461a872367efed67b
2020-03-19 16:32:33 -07:00
Becky Qiu 445de0e579 [Overview Actions] Hide overview actions when swipe down to launch app.
Test: demo video: https://drive.google.com/a/google.com/file/d/122DNdDhInp5KALSOcfNLhl19eDm4zKcf/view?usp=sharing
Bug: 151928222
Change-Id: I837df884c78b297dbddf770e526340cb83530984
2020-03-19 16:00:56 -07:00
TreeHugger Robot 75bb8309c1 Merge "Fixing taskView is recycled with visibility gone when dismissed" into ub-launcher3-master 2020-03-19 19:51:01 +00:00
Sunny Goyal 6feb4b638e Fixing taskView is recycled with visibility gone when dismissed
Bug: 151883828
Change-Id: I89d6ed78e1713b1e69e8c7075c638692902f5842
2020-03-19 12:00:44 -07:00
Jon Miranda 42e7c503e1 Polish app open scrim animation.
We used to hide the scrim animation immediately, now we fade it out along with
the rest of the draglayer.

Also uses staggered workspace animation when resuming launcher from other
means ie. back gesture -> home

Bug: 145242991
Change-Id: Ib2161746f79ae5eaceac02d1416aa9bd7ecfeac4
2020-03-19 11:59:59 -07:00
TreeHugger Robot 02c4a73716 Merge "[Overview Actions] Hide task view footers when it's modal." into ub-launcher3-master 2020-03-19 18:05:07 +00:00
Samuel Fufa ef1d1b93e4 Merge "Final strings for work profile and hybrid hotseat" into ub-launcher3-master 2020-03-19 06:05:13 +00:00
Samuel Fufa 365277a37a Final strings for work profile and hybrid hotseat
Bug: 151831282
Bug: 142753423
Change-Id: I11dd21c3854b8b33fc44b2e49ca0e62c24da3310
2020-03-19 02:22:24 +00:00
Samuel Fufa 351eaedc91 Final strings for work profile and hybrid hotseat
Bug: 151831282
Bug: 142753423
Change-Id: I11dd21c3854b8b33fc44b2e49ca0e62c24da3310
2020-03-18 19:20:21 -07:00
Tracy Zhou 269f30fb9b Merge "Set default value of gridName to current grid name in GridOptionsProvider" into ub-launcher3-master 2020-03-19 02:17:19 +00:00
Becky Qiu 739a66eb8c [Overview Actions] Hide task view footers when it's modal.
Demo: https://drive.google.com/a/google.com/file/d/1sXfHG0aMe7OzmIx7uZLAincvg6KizCLj/view?usp=sharing

Test: local
Bug: 151745339
Change-Id: Icf1263b87dbada2025a2d494bf1f2f067584f8c4
2020-03-18 17:41:35 -07:00
Winson Chung cd5977983d Merge "Update window threshold in both directions" into ub-launcher3-master 2020-03-19 00:11:16 +00:00
Tracy Zhou 42255d22a7 Set default value of gridName to current grid name in GridOptionsProvider
With grid preview, a grid name is passed in when requesting preview under different grid setting. With wallpaper preview, no such grid name will be passed in, and it should be set to the current.

Bug: 145242344
Test: N/A
Change-Id: I282cb5341b7f3756d41c4abd8d97f986abaa6d27
2020-03-18 16:52:28 -07:00
Lucas Dupin 4918ed38d2 Add wallpaper zoom to areas that have blur
Whenever blurring, the wallpaper should also zoom out. This is the
mental model of our Depth System.

Test: manual
Bug: 149792636
Change-Id: I1783eb87fefeb6f917f0ba64f2c6ec8f1f2004fa
2020-03-18 13:29:58 -07:00
Winson Chung dcc651d091 Update window threshold in both directions
- Only use the task flags when we should be using the home screen state

Change-Id: I1b0f682eb9c2861b36953da7695c798c187db517
2020-03-18 11:17:23 -07:00
vadimt 5e46f072b4 Fixing TouchInteractionService referring destroyed activity
Bug: 139137636
Change-Id: I2d36bcd9478e070e21cb6c8e2cde617807af8dd1
2020-03-18 09:42:38 -07:00
Zak Cohen 566dd2e3e6 Merging from ub-launcher3-master @ build 6304996
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_rvc-dev_6304996.html

Change-Id: I6ddd8ff2c3643b5682ce108921d30febdd7f72d2
2020-03-17 16:55:50 -07:00
TreeHugger Robot bc2424d726 Merge "Force finishing spring animation on second touch, if the animation is close to completion" into ub-launcher3-master 2020-03-17 23:28:25 +00:00
Winson Chung 5bee1f934b Merge "Revert^2 "Merging from ub-launcher3-master @ build 6294827"" into rvc-dev 2020-03-17 23:24:32 +00:00
Sunny Goyal 26729a129a Force finishing spring animation on second touch,
if the animation is close to completion

Bug: 151180649
Change-Id: I7085bb76d4937910d55cbaf1cb71a0e6c24922d5
2020-03-17 15:02:21 -07:00
Jon Miranda c298078241 Add staggered workspace animation to keyguard unlock animation.
Added behind FeatureFlag.KEYGUARD_ANIMATION due to dependency on
Ie94ab8ecd35e9dcc28d0b8f7aaeb058e15b0f80b.

Added dynamic resource unlock_staggered_velocity_dp_per_s so that the
animation can be tuned.

Bug: 151238866
Change-Id: I4d349d32cc7d86be3cdc582c2a7c565be2931444
2020-03-17 14:27:35 -07:00
Winson Chung c18b7a4b04 Revert^2 "Merging from ub-launcher3-master @ build 6294827"
70a76a61bf
Bug: 151611270
Change-Id: I16e0afcda998d2b1293ff47a66d5562fa4da77dc
2020-03-17 20:51:09 +00:00
TreeHugger Robot c73071281b Merge "Moving animation config so a separate class" into ub-launcher3-master 2020-03-17 03:39:41 +00:00
TreeHugger Robot 7ea4409ca7 Merge "Fixing LauncherAnimationRunning referring a destroyed activity" into ub-launcher3-master 2020-03-17 03:07:35 +00:00
TreeHugger Robot 9aa000e4aa Merge "Apply localBounds / screenSpaceBounds for RemoteAnimationTarget in Launcher" into ub-launcher3-master 2020-03-17 02:54:02 +00:00
Sunny Goyal f3ac703256 Moving animation config so a separate class
Using PendingAnimation for animation builder.
This will allow us to easily add SpringAnimation to stateAnimation

Change-Id: I8d88489a5da6fc85747ef9be7c13858b441cd28a
2020-03-16 19:36:36 -07:00
vadimt bd0955dfd7 Using cmd overlay enable-exclusive to switch nav modes
Bug: 151598694
Change-Id: I7df6b7538f7233163868065b866b610c45dc7b46
(cherry picked from commit ccf083dc7d)
2020-03-17 00:10:21 +00:00
Vadim Tryshev 661e0f18ea Merge "Using cmd overlay enable-exclusive to switch nav modes" into ub-launcher3-master 2020-03-17 00:08:54 +00:00
Anthony Stange f7871fdb54 Merge "Revert "Merging from ub-launcher3-master @ build 6294827"" into rvc-dev 2020-03-16 20:45:17 +00:00
vadimt ccf083dc7d Using cmd overlay enable-exclusive to switch nav modes
Bug: 151598694
Change-Id: I7df6b7538f7233163868065b866b610c45dc7b46
2020-03-16 12:43:10 -07:00
Tracy Zhou cfe7efb7e2 Merge "Use SurfaceView to render grid preview" into ub-launcher3-master 2020-03-16 18:44:28 +00:00