Commit Graph

554 Commits

Author SHA1 Message Date
Sunny Goyal
6aef85c417 Merge "Moving some swipe up complete logic to when the handler is completed." into ub-launcher3-edmonton 2018-04-23 19:19:58 +00:00
Sunny Goyal
0bbacc705c Moving some swipe up complete logic to when the handler is completed.
Bug: 76449024
Change-Id: I136e665495ab7164c79e1dfa0ef61090ba50fc7a
2018-04-23 12:09:22 -07:00
Jorim Jaggi
cd95352ada Remove prolonged animations
Never worked in P, not needed.

Test: Enter split screen
Bug: 77993227
Change-Id: I092c4141c23dd7ded4e11a0f54156b1abfa2b1c6
2018-04-23 11:54:21 -07:00
TreeHugger Robot
0ec3ce0bdf Merge "Compute window offset when quick scrub starts" into ub-launcher3-edmonton 2018-04-23 18:34:34 +00:00
Tony Wickham
78595cd7de Compute window offset when quick scrub starts
Instead of setting the window center to match the task center on every
update, compute the final offset when quick scrub starts and interpolate
alongside other factors such as window scale.

Bug: 78027888
Change-Id: I33b115764d46ecd6907ecb82b1ba12aeefc583c5
2018-04-23 11:24:24 -07:00
TreeHugger Robot
8b5c7d9315 Merge "Implement all apps discovery bounce." into ub-launcher3-edmonton 2018-04-23 17:36:22 +00:00
Tracy Zhou
e5575f9fff Implement all apps discovery bounce.
Mock: https://docs.google.com/presentation/d/1TCp1mREgsFAWq4hCnUaSRCpaqvDbzCVkN1mJuRMylIg/edit#slide=id.g36a3e190fb_0_6

Demo video: go/shelf_bounce_animation

Fixes: 70180942
Test: manual test
Change-Id: I6ecceb63612dd63cea62f2e6cb19d7522f3d76e0
2018-04-23 10:26:40 -07:00
Sunny Goyal
de0e588a07 Cleaning up some obsolete TODOs and methods
Change-Id: I7c3f1a68fc555899e6a1270aa2ad973197a7ed85
2018-04-20 18:01:37 -07:00
Sunny Goyal
9ea8a69bc8 Merge "Handling swipe up on a third-party launcher" into ub-launcher3-edmonton 2018-04-21 00:49:11 +00:00
Sunny Goyal
d60c00cc87 Merge "Using the activity size for swipe-dow animation in fallback+multiWindow mode" into ub-launcher3-edmonton 2018-04-21 00:48:49 +00:00
Winson Chung
b882b171e0 Only preload tasks in background when service is connected
Bug: 76162466
Test: Disable the component, ensure no task snapshots are preloaded
Change-Id: I86b66c79eb2c33796fef09d4466bc313f1c6af69
2018-04-21 00:28:27 +00:00
Sunny Goyal
6dedc222be Handling swipe up on a third-party launcher
Bug: 78125098
Change-Id: Iba4247987825bf9ce16d3494200bfea889c931e2
2018-04-20 16:33:56 -07:00
TreeHugger Robot
d39b8755b5 Merge "Force finish any pending animations if the insets or orientation change" into ub-launcher3-edmonton 2018-04-20 21:10:17 +00:00
Sunny Goyal
ed2d2bcbb8 Force finish any pending animations if the insets or orientation change
Some animation might be running from a previous orientation, which can cuase property changes
to get skipped.

Bug: 77848165
Bug: 77774619
Change-Id: I3e198196192746abdd72a1970ff2ef407bf4aff9
2018-04-20 20:53:16 +00:00
TreeHugger Robot
9d1e0f116f Merge "Making clear-all pressable correctly" into ub-launcher3-edmonton 2018-04-20 20:48:41 +00:00
Vadim Tryshev
d9e53c13b1 Making clear-all pressable correctly
Bug: 72222505
Test: Manual
Change-Id: I1ca35482a2090c329be6c906f5047612e6948ad2
2018-04-20 13:38:41 -07:00
TreeHugger Robot
48ac87350f Merge "Not sharing same task view between shortcuts" into ub-launcher3-edmonton 2018-04-20 20:05:18 +00:00
TreeHugger Robot
02632bcc1a Merge "Not ignoring insets for Clear-all button" into ub-launcher3-edmonton 2018-04-20 19:45:24 +00:00
Vadim Tryshev
4d577fc1c5 Not sharing same task view between shortcuts
SplitScreen task shortcut was written with an expectation that only one
instance would be created at a time.

No that it's used by Accessibility, SplitScreen may be asked to provide
multiple shortcuts at a time for multiple tasks, and they share same
mTaskView.

Fixing this.

Bug: 78094307
Test: Manual
Change-Id: Ib440ca862b0677ec4a012ec9f2a225183b2c91f4
2018-04-20 12:20:20 -07:00
Tony Wickham
6c5e169de6 Prevent unecessary invalidates
updateEmptyMessage() calls invalidate() whenever size has changed. We
were only updating mLastMeasuredSize when showing the empty message,
however, so we were invalidating whenever updateEmptyMessage was called.

Change-Id: Ic9046738e4f53d53aded6347a273522c53394991
2018-04-20 11:32:03 -07:00
Sunny Goyal
f3d7328518 Using the activity size for swipe-dow animation in fallback+multiWindow mode
Bug: 77281732
Change-Id: I2d652b801bcecd339fed00a43677b20d782997c6
2018-04-20 09:30:32 -07:00
Vadim Tryshev
4473658c2f Not ignoring insets for Clear-all button
When in portrait mode with nav bar on the right , we need the right
inset to be applied to the layout.

Bug: 72222505
Test: Manual
Change-Id: I06ac864097fb3cfb833de3e40921be4e19eb5f54
2018-04-19 18:43:04 -07:00
TreeHugger Robot
e13659bd5b Merge "Updating the task swipe-down UI" into ub-launcher3-edmonton 2018-04-19 23:38:13 +00:00
Sunny Goyal
7d2e40912e Updating the task swipe-down UI
Bug: 77281732
Change-Id: I1bbc1bbeee74983b3fde5e8218e08689f32ac717
2018-04-19 16:30:43 -07:00
Vadim Tryshev
e8cf0ae61f Centering empty icon.
This is more correct way that what was rolled back here: ag/3922402.

Bug: 72222505
Test: Manual
Change-Id: I2cc4549db9b6a5965523d13ffde768b3e28bc7a6
2018-04-19 13:26:48 -07:00
TreeHugger Robot
69632a46ab Merge "Linking swipe animate to stateTransition to that it gets properly reset afterwards" into ub-launcher3-edmonton 2018-04-19 18:02:12 +00:00
TreeHugger Robot
e590e0b477 Merge "Small tweaks to positioning Clear-all button" into ub-launcher3-edmonton 2018-04-19 17:22:22 +00:00
Vadim Tryshev
9a68a9ea62 Small tweaks to positioning Clear-all button
Bug: 72222505
Test: Manual
Change-Id: I920a1d712e4f72ed66cf0c31cb77cf949339b2c6
2018-04-18 18:59:56 -07:00
TreeHugger Robot
fed15f199e Merge "Implement swipe up and quick scrub onboarding (Pt. Launcher)" into ub-launcher3-edmonton 2018-04-19 00:45:09 +00:00
Tracy Zhou
5c74f7bb59 Implement swipe up and quick scrub onboarding (Pt. Launcher)
SysUI change: ag/3914771

Bug: 70180942
Test: manual test
Change-Id: I42ade28ebad6dcbbcee6dfb80791f22f36e78290
2018-04-18 17:35:33 -07:00
TreeHugger Robot
c2f651decf Merge "Removing scrolling to 0" into ub-launcher3-edmonton 2018-04-19 00:10:54 +00:00
Vadim Tryshev
f8f126c03e Removing scrolling to 0
This caused regressions in flip-order mode.

Will figure our later what should replace it when clear-all is enabled.

Bug: 72222505
Test: Manual
Change-Id: Ie3d65f550935a26efa8e8e31594dbe8f35ba1f71
2018-04-18 17:00:56 -07:00
TreeHugger Robot
173765b4e6 Merge "Always draw the background color in the task views" into ub-launcher3-edmonton 2018-04-18 23:50:54 +00:00
Winson Chung
174aae5dbd Always draw the background color in the task views
- Snapshots can now be translucent which means that we always have to draw
  the background for translucent apps

Bug: 77813801
Change-Id: I70bd77aa56ee7988e2af1b602884739837478c39
2018-04-18 16:32:32 -07:00
Vadim Tryshev
b1c33a5d3f Merge "Fixing Clear-all crawling down with time" into ub-launcher3-edmonton 2018-04-18 21:42:39 +00:00
Vadim Tryshev
5b87fa6af7 Fixing Clear-all crawling down with time
+ a small optimization.

Bug: 72222505
Test: Manual
Change-Id: I0fbdee0a85c123d201b0eb6951f244540ef48117
2018-04-18 14:17:32 -07:00
Sunny Goyal
d837a329b8 Increasing the max fling/swipe duration
Bug: 78059672
Change-Id: Iede9982b634f48f3f28732aa0d2c8413972c390b
2018-04-18 13:34:52 -07:00
TreeHugger Robot
955a018df7 Merge "Do not allow fling if we didn't get onGestureStarted" into ub-launcher3-edmonton 2018-04-18 19:37:19 +00:00
Sunny Goyal
5490445898 Do not allow fling if we didn't get onGestureStarted
Bug: 78232923
Change-Id: Ia37f54d7a0e2eb1d42641648ac7a5e7687e3dd0c
2018-04-18 12:23:26 -07:00
TreeHugger Robot
58253eaac8 Merge "Introducing Clear-all button on Overview" into ub-launcher3-edmonton 2018-04-18 18:56:28 +00:00
Vadim Tryshev
6d2321cb7d Introducing Clear-all button on Overview
It’s an initial implementation, i.e. no fancy effects.
It shares a parent (LauncherRecentsViewContainer) with RecentsView.
The button is centered in clear_all_button_container, which gets
positioned programmatically to the right of the last task. (RTL polish
will be a separate CL as well).

Bug: 72222505
Change-Id: Ia912908a93a30c2f51450ccf0f97c7495e7916d5
Test: Manual
2018-04-18 11:33:21 -07:00
Sunny Goyal
4b03a1e5a2 Restricting the max duration used for the swipe-down animation
> Also changing the interpolator from t^5 to t^2 so that it settles faster.

Bug: 78059672
Change-Id: Iae6e6f56eb2e249c11a8e069f04ab0f26a683063
2018-04-18 09:58:48 -07:00
Sunny Goyal
864d688ff3 Do not send proxy touch events to children.
Call onIntercept and ontouch direclty, so that the touch is only
handled by touch handlers

Bug: 77912191
Change-Id: I8b583da2394282c757348818470dbb4bee095b33
2018-04-17 20:07:18 +00:00
Sunny Goyal
cc35bb88da Linking swipe animate to stateTransition to that it gets properly reset afterwards
Bug: 77848165
Change-Id: Ie4ae2fe933b37b66568c0a8eb29c85b9869a9987
2018-04-17 20:03:57 +00:00
Jorim Jaggi
71142fa4ac Fix jank in launcher
The icon grid was reappearing at the end of the animation, causing
slower frame draws at the end of the animation, possibly leading
to jank.

Fix this by waiting with resetting the alpha until the whole
animation is done.

Test: Open/close apps
Bug: 75985430
Change-Id: I8fa62c5f648335ce9d4c4450d52c46465e2d08bf
(cherry picked from commit 197808681d)
2018-04-17 19:59:34 +00:00
Tony Wickham
c879dbf764 Animate thumbnail dim after quick scrub settles
We now animate the dim alpha at the same time as the task icon.

I also clarified the dim alpha by inverting it where it is used in
TaskThumbnailView. Otherwise, we have to pass 1 - dimAlpha everywhere,
which is confusing and verbose.

Bug: 76170043
Change-Id: If8c01300993a0e5543b0650d44daaa143592b96e
(cherry picked from commit 291bfd9c95)
2018-04-17 19:27:33 +00:00
Sunny Goyal
3483c52e6b Waiting until onResume before creating the wallpaper-open animation.
Bug: 77853906
Change-Id: I5126855492da59c9dbfef0ce2a97f94662a6522b
2018-04-16 13:01:57 -07:00
Sunny Goyal
9162f8187c Better handling transparent activities
> Only hiding the task associated with the current task, instead of hiding all tasks
> Maintaining a state for hidden task so that it does not get reset when alpha is changed due
  to some other reason.

Bug: 77830202
Change-Id: I202e99b153c6f9e3a8d9c68d6844672b3bff41e9
2018-04-14 13:46:41 -07:00
TreeHugger Robot
c1ff2a9dad Merge "Close floating views when entering overview" into ub-launcher3-master 2018-04-13 18:21:09 +00:00
Tony Wickham
f009493dd4 Close floating views when entering overview
Bug: 77995763
Change-Id: I9554b3d4925e208472de06d9e754d0aee369d75b
2018-04-13 11:10:18 -07:00