Commit Graph

13651 Commits

Author SHA1 Message Date
Tony Huang 7d375e31fe Enable one-handed mode gestural in QuickStep
Handling swipe-down/swipe-up gestural in device bottom area
for one-handed mode

1) The regsion is larger than gesture navigationbar view
2) One handed gestural in quickstep only active on NO_BUTTON, TWO_BUTTONS mode
3) One handed gestural only support on portrait mode

Bug: 150747547
Bug: 154189137
Bug: 156988988

Test: make and install
Test: manual enable one handed mode and swipe down to trigger
Test: manual start one handed and rotate device

Change-Id: I7b2447bfb2fe4082c95176b62934b98077b84920
2020-05-29 19:40:15 +08:00
TreeHugger Robot 1ea847ff42 Merge "Fix actions view showing up when it shouldn't in a couple spots" into ub-launcher3-rvc-dev am: 172ea18639
Change-Id: Icc849de108154f66613d957f962556a0daf730af
2020-05-29 01:28:04 +00:00
TreeHugger Robot 172ea18639 Merge "Fix actions view showing up when it shouldn't in a couple spots" into ub-launcher3-rvc-dev 2020-05-29 01:16:31 +00:00
TreeHugger Robot b14c703579 Merge "Remove overview share to match spec" into ub-launcher3-rvc-dev am: 06fcfe1f5f
Change-Id: I53c28941881b083d7a7312377a280bc4ea1f8d55
2020-05-29 00:56:33 +00:00
Tracy Zhou d67be77066 Merging from ub-launcher3-rvc-dev @ build 6538292
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-dev_rvc-dev_6538292.html

Change-Id: I53b084ca2dc94d94f87d696bbfd7666b55d712ad
2020-05-28 17:45:04 -07:00
Tony Wickham 1fbf3c76f6 Fix actions view showing up when it shouldn't in a couple spots
- Replace HIDDEN_FULLSCREEN_PROGRESS with INDEX_FULLSCREEN_ALPHA
- When animating actions in after swiping to overview from an app,
  start at alpha 0 (since we setState(OVERVIEW) without animation
  when we settle, meaning alpha would already be 1).
- Fade in actions at the same duration as the icon scale when
  entering overview from an app
- Hide actions during quick switch from home

Tests:
- Start quick switch from home and swipe up back to home
- Start quick switch from home and swipe up to overview
- Go to overview from home
- Go to overview from an app
Verify actions don't appear on the first, and fade in
for the rest.

Bug: 157597385
Change-Id: I43a0be702066f91e13ce2a720278aae27160c557
2020-05-28 19:10:38 -05:00
Sreyas ae23746fa0 Remove overview share to match spec
Bug: 157174391
Change-Id: Iabfeb34b77abcb885b1518d348cac45e71dc92a9
2020-05-28 17:04:42 -07:00
Samuel Fufa f0dc0b6ae0 Remove dependency on Launcher notification for hotseat edu
Doc: go/hybrid-hotseat-tips

Allow launcher to show hotseat education with intent action "launcher.show_hotseat_edu"

Bug: 157683315
Test: Manual
Change-Id: I62c79b821b79cf1adb831e2f79f6f0f02166ca42
2020-05-28 16:40:46 -07:00
TreeHugger Robot 3092dfac9a Merge "Fix QSB animating separately from workspace during stagger anim" into ub-launcher3-rvc-dev am: f8273b949f
Change-Id: I31459de71e79e29c6cf4c2b7ecc80dbf395ab124
2020-05-28 23:35:52 +00:00
TreeHugger Robot f8273b949f Merge "Fix QSB animating separately from workspace during stagger anim" into ub-launcher3-rvc-dev 2020-05-28 22:43:50 +00:00
Tony Wickham 5d4e8541d0 Fix QSB animating separately from workspace during stagger anim
- Don't play any state animation if animComponents == 0
- StaggeredWorkspaceAnim handles depth controller

Bug: 157596833
Change-Id: I6ae4c5da2e837c61b57349e708b7499af8e14aaa
2020-05-28 16:42:45 -05:00
TreeHugger Robot d1d4c78b12 Merge "Putting Overview Share button behind flag" into ub-launcher3-rvc-dev am: 065c84cbeb
Change-Id: If8d51e1077e61a2c22644f289ef15d3cd6c910cb
2020-05-28 20:58:18 +00:00
TreeHugger Robot 065c84cbeb Merge "Putting Overview Share button behind flag" into ub-launcher3-rvc-dev 2020-05-28 20:38:46 +00:00
Sreyas dbedb91ad8 Putting Overview Share button behind flag
https://drive.google.com/file/d/1Io5N-LyXoRa9LHQjJNd1BAgBkVuBvnhr/view?usp=sharing
https://drive.google.com/file/d/15HhNvNoUn5qX1GhkjDaifA3G05PLoIwO/view?usp=sharing
Bug: 157174391

Change-Id: I8314d5aa309fe020a4121753d4e76ca10370c626
2020-05-28 12:03:12 -07:00
Sunny Goyal b46703d538 Fixing incorrect taskView size in multiwindow-landscape
RecentsView uses deviceProfile to calculate the padding.
Device profile had incorrect sizes in multiwindow mode as it
was not considering the insets.

Bug: 155816922
Change-Id: Iaa5b939624b4128ed634e6de1abf8453e2ae852b
2020-05-28 11:49:31 -07:00
Tony Wickham 39046f245b Merge "Don't run finish callback until we actually finish" into ub-launcher3-rvc-dev am: b4d75d2931
Change-Id: I0fbb4b375ba2d19d9b3de20f3a5c6e02768cdd82
2020-05-28 18:00:28 +00:00
TreeHugger Robot 11792138b0 Merge "Logging to debug Overview Actions not working." into ub-launcher3-rvc-dev am: ef7184c8a7
Change-Id: I3d16302afe4f27fd409658beef964437b6c1b063
2020-05-28 18:00:19 +00:00
TreeHugger Robot 6e3fe7207f Merge "Move content resolver call to constructor and cache" into ub-launcher3-rvc-dev am: 938fccd3da
Change-Id: I97bf0bab86cf927a92d219a33aae7b9e47aaf8d1
2020-05-28 17:59:24 +00:00
Tony Wickham b4d75d2931 Merge "Don't run finish callback until we actually finish" into ub-launcher3-rvc-dev 2020-05-28 17:18:09 +00:00
TreeHugger Robot ef7184c8a7 Merge "Logging to debug Overview Actions not working." into ub-launcher3-rvc-dev 2020-05-28 17:02:15 +00:00
TreeHugger Robot 938fccd3da Merge "Move content resolver call to constructor and cache" into ub-launcher3-rvc-dev 2020-05-28 05:55:42 +00:00
thiruram 957de6165d Fixes missing WW logs for drag and drop events. am: c85095b0e9
Change-Id: I2ade9346c63cf0373db15b3685f6b96a24d67550
2020-05-28 00:31:16 +00:00
Tony Wickham 5cf9edc1f2 Don't run finish callback until we actually finish
This fixes the issue where the app re-appears on top if you touch
the nav bar during the animation to home.

The sequence of events leading to this behavior is pretty long,
but actually always should have happened, it was just masked
until the ag/11172732 fix went in.

Here's an abbreviated version of what was happening
on the touch down during the animation to home:
1 Set mRecentsAnimationController#mTouchInProgress = true
2 Cancel the running animation to home
3 onSettledOnEndTarget(HOME) (this is what was missing before)
4 finishCurrentTransitionToHome(), which, due to #1, doesn't
  actually finish the controller, but does run the callback
5 Invalidate the handler due to #4, leading to TIS#reset()
6 Create a new handler (still from the original touch down),
  which is mResetGestureInputConsumer
7 mResetGestureInputConsumer handles touch down to finish
  the controller the app

This change addresses #4. Instead of calling the callback
immediately, we defer it to when we actually finish the
controller, which ensures there's no longer premature
cleanup that leads to the rest of the sequence.

Bug: 157407284
Change-Id: I0b2ff57bfa77a25c2bf1aece4b0ae7f943637ce6
2020-05-27 19:26:16 -05:00
thiruram c85095b0e9 Fixes missing WW logs for drag and drop events.
Change-Id: I31f8aa132d70b42c3b8213daf0bbd5c555cf3895
2020-05-27 16:35:14 -07:00
TreeHugger Robot 0f3a05f913 Merge "Avoid unnecessary predictor recreations." into ub-launcher3-rvc-dev am: fcfba815af
Change-Id: I560a4bc7efbea2c0c59fe81461a9bb244e6f127a
2020-05-27 21:36:54 +00:00
Hyunyoung Song e1d1887918 Merge "use LauncherAtom.ItemInfo.getDefaultInstance inside StatsLogManager" into ub-launcher3-rvc-dev am: cf0e79916d
Change-Id: I065cc8f574508e80f876363ed767dc8400a6eb8b
2020-05-27 21:36:47 +00:00
TreeHugger Robot fcfba815af Merge "Avoid unnecessary predictor recreations." into ub-launcher3-rvc-dev 2020-05-27 21:30:31 +00:00
Hyunyoung Song cf0e79916d Merge "use LauncherAtom.ItemInfo.getDefaultInstance inside StatsLogManager" into ub-launcher3-rvc-dev 2020-05-27 21:29:54 +00:00
Sunny Goyal 601f35d76a Updating swipe up on home animations am: a314d5ad58
Change-Id: I8ecea85b1358c3dc1149b3ec77141e0a8c083be0
2020-05-27 20:35:34 +00:00
TreeHugger Robot 95b92626d3 Merge "Using TaskViewSimulator for animating task launch" into ub-launcher3-rvc-dev am: 32f6cd1116
Change-Id: Ib21ab057d5f88ccd467f100b8c8b61f9ddd25622
2020-05-27 19:54:57 +00:00
Sunny Goyal a314d5ad58 Updating swipe up on home animations
> Scaling down home activity on swipe-up from home and spring back to place on cancel
> Fading out recents on swipe-up to home, so ensure that adjecent tiles also dissapear
> Instead of controlling alpha, controlling full transform for base and home task. This allows adding custom animation for home task on swipe up.
> Removing alpha hanging for fallback activity in baseSwipeHandler. Instead controlling full transform for home activity
> Adding feature flag to use QuickstepLauncher as 3P Launcher to make development easier.

Bug: 156398988
Change-Id: I69cc59f2c9c95d15df6926ba635e7d6c251dceb6
2020-05-27 19:49:46 +00:00
TreeHugger Robot 32f6cd1116 Merge "Using TaskViewSimulator for animating task launch" into ub-launcher3-rvc-dev 2020-05-27 19:35:44 +00:00
Samuel Fufa eec3d09828 Avoid unnecessary predictor recreations.
Bug: 156778758
Test: Manual
Change-Id: I1bb53273c1976f700596b5ec34697ed4e1788e55
2020-05-27 12:33:53 -07:00
Vinit Nayak 281193e996 Move content resolver call to constructor and cache
Changing fixed rotation enabled system setting flag
should be followed by a restart of launcher for it
to take effect.

Bug: 149571513
Change-Id: I84fbb654c325076571a038604fa929984d22f254
2020-05-27 12:21:40 -07:00
TreeHugger Robot e89e9c51bc Merge "Use device insets for multiwindow, else use thumbnail insets" into ub-launcher3-rvc-dev am: 6137535005
Change-Id: Ic0ec22deb764ba882eb1739e68d76c62a7113532
2020-05-27 19:19:09 +00:00
TreeHugger Robot 6137535005 Merge "Use device insets for multiwindow, else use thumbnail insets" into ub-launcher3-rvc-dev 2020-05-27 19:13:50 +00:00
Sunny Goyal e1e3f6ef5b Using TaskViewSimulator for animating task launch
Bug: 155816922
Bug: 156398988
Change-Id: I8d64322596e9d99df49b01cb9adfbfca6d95b89b
2020-05-27 18:42:49 +00:00
Tony Wickham 7c0f259baa Use device insets for multiwindow, else use thumbnail insets
This is consistent with what we do for the right/bottom clipped
insets already, and fixes cases where the device insets don't
match the thumbnail insets (e.g. for fullscreen apps).

Bug: 157097544
Change-Id: I630bb115cab571f3439bfbe8ded5affd924f7e64
2020-05-27 13:37:52 -05:00
TreeHugger Robot 39594cbed4 Merge "Keep recents attached to app window on continued switching" into ub-launcher3-rvc-dev am: 37a7d2af42
Change-Id: I97f63b2fd696f45da3eadfb7a03728dabd79c60b
2020-05-27 18:11:09 +00:00
Tony Wickham 1f3ecfaf52 Merge "Revert "Use splitscreen insets for multiwindow, else use thumbnail insets"" into ub-launcher3-rvc-dev am: 11a2d58bee
Change-Id: I6f2d11eea5c9b656a2a3fa5476ec1982dd040afe
2020-05-27 18:11:03 +00:00
Tony Wickham bda0600c02 Merge "Use splitscreen insets for multiwindow, else use thumbnail insets" into ub-launcher3-rvc-dev am: abaa39b9ea
Change-Id: I31cf36e09f13fc4ccc61c86911e575bc72c9b469
2020-05-27 18:10:56 +00:00
TreeHugger Robot 37a7d2af42 Merge "Keep recents attached to app window on continued switching" into ub-launcher3-rvc-dev 2020-05-27 18:07:11 +00:00
Tony Wickham 11a2d58bee Merge "Revert "Use splitscreen insets for multiwindow, else use thumbnail insets"" into ub-launcher3-rvc-dev 2020-05-27 18:05:58 +00:00
Tony Wickham a9aa2c6bb3 Revert "Use splitscreen insets for multiwindow, else use thumbnail insets"
This reverts commit c093b25c75.

Reason for revert: seems the flake isn't flaking after this change

Change-Id: I03c003103b610fcdd174fbf820c428d337d9109b
2020-05-27 18:01:30 +00:00
Tony Wickham abaa39b9ea Merge "Use splitscreen insets for multiwindow, else use thumbnail insets" into ub-launcher3-rvc-dev 2020-05-27 17:57:04 +00:00
Hyunyoung Song a451508818 use LauncherAtom.ItemInfo.getDefaultInstance inside StatsLogManager
Bug: 153611516
Change-Id: I8531df7ee61c336c9919f5ff137bb1e113c126ea
2020-05-27 09:59:04 -07:00
TreeHugger Robot f71079343a Merge "Add all apps education tutorial." into rvc-dev 2020-05-27 04:11:41 +00:00
Tony Wickham c093b25c75 Use splitscreen insets for multiwindow, else use thumbnail insets
This is consistent with what we do for the right/bottom clipped
insets already, and fixes cases where the device insets don't
match the thumbnail insets (e.g. for fullscreen apps).

Bug: 157097544
Change-Id: I25216fef0d804704e7c7bd84316f932767c2f110
2020-05-26 16:55:58 -05:00
TreeHugger Robot f3cfd0ccad Merge "Fix NPE when recents animation controller is null" into ub-launcher3-rvc-dev am: 0bef6c937a
Change-Id: I3ce85e6eea0bf8c0e0e274c8b45eb19fa0d3dafb
2020-05-26 19:10:04 +00:00
TreeHugger Robot 0bef6c937a Merge "Fix NPE when recents animation controller is null" into ub-launcher3-rvc-dev 2020-05-26 18:48:42 +00:00