Commit Graph

6193 Commits

Author SHA1 Message Date
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
Tony Wickham a47a8f1b1d Fix NPE when recents animation controller is null
If it's null, that means the animation was already canceled or
finished, so we don't need to finish it anyway.

Bug: 157383670
Change-Id: I9b0dde76d5756536d8d97bc3d7f13723f903a79c
2020-05-26 13:05:29 -05:00
Jon Miranda 46fd4ec625 Add all apps education tutorial.
* Added FeatureFlag.ENABLE_ALL_APPS_EDU
* When user swipes up on nav bar three times and goes to hint state
  consecutively, we show the new All Apps education tutorial.
* For now we block interaction while the animation is playing,
  and we remove the view when the animation is done.
* Future CL will leave view up until user successfully reaches All Apps state.

Bug: 151768994
Change-Id: I903e0a3914d0558950ecb8cd714d97ddc10ca06b
(cherry picked from commit 517cec5344)
2020-05-26 15:21:28 +00:00
TreeHugger Robot 69d772633d Merge "Import translations. DO NOT MERGE" into ub-launcher3-rvc-dev 2020-05-22 23:23:03 +00:00
Bill Yi 5051db820b Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I37782ef5afd3cf3606bef863f14731996ae9e0c9
2020-05-22 23:09:02 +00:00
Vinit Nayak 5d835bcdaa Enable RotationWatcher when home rotation is on
Update the PagedOrientationHandler when launcher
is allowed to rotate to ensure the correct one
gets set.

Fixes: 157173248
Change-Id: Iffb9df479fcccfb0fe2bd462167242b592949f69
2020-05-21 16:13:27 -07:00
Vinit Nayak b0961acdb6 Merge "Maintain fake nav bar position in overview for landscape" into ub-launcher3-rvc-dev am: c217c72bcc
Change-Id: I7b79762b31bfc34f67a5ec738c106694e725bb1c
2020-05-21 21:02:42 +00:00
Vinit Nayak c217c72bcc Merge "Maintain fake nav bar position in overview for landscape" into ub-launcher3-rvc-dev 2020-05-21 20:59:25 +00:00
Ben Lin e50d7a2f54 Don't set shelf height if we are in landscape.
Bug: 147155783
Test: Start PIP, Rotate launcher, stop getting height offset update
Change-Id: Ifc6c11882293228ffd19ac534ee59b1cf29d9a96
2020-05-21 13:13:27 -07:00