Commit Graph

548 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot
8fa358a6ba Merge "Close out of recents when clicking it if it's empty" into ub-launcher3-master 2018-04-13 17:48:47 +00:00
Tony Wickham
3ee9f57eb6 Close out of recents when clicking it if it's empty
Bug: 77977813
Change-Id: Iadc95e47c68ed54b6f98bb053a543c0b240117c2
2018-04-13 10:40:21 -07:00
Tony Wickham
035a20dee1 Merge "Don't show back button when discovery bounce is playing" into ub-launcher3-master 2018-04-13 17:27:37 +00:00
TreeHugger Robot
d98f8e1035 Merge "Fixing wrong cliping height when screenshot is rotated" into ub-launcher3-master 2018-04-13 16:43:08 +00:00
Sunny Goyal
f3dbad134b Fixing wrong cliping height when screenshot is rotated
Bug: 77979532
Change-Id: I41aa5dc85a035e7936861412f3d77e22143eaf81
2018-04-13 09:18:39 -07:00
Mehdi Alizadeh
c7ee6802c5 Uses definitions in sysui_shared lib for Settings names
Also drops a new sysui_shared.jar

Bug: 77732469
Test: verifty it builds
Change-Id: I080672be4df746ecd3124cc22ccec3ceea3b0742
2018-04-12 19:15:15 -07:00
Tony Wickham
df1eb8bb86 Don't show back button when discovery bounce is playing
Bug: 74766552
Change-Id: Ib3b514f4a2bfaa8593b82cd5acb16f02dd09dcc7
2018-04-12 17:26:18 -07:00
Tony Wickham
0d72f20006 Merge "Take padding/insets into account to center empty recents message" into ub-launcher3-master 2018-04-12 22:47:43 +00:00
Tony Wickham
2dcb4f6698 Take padding/insets into account to center empty recents message
Bug: 77930613
Change-Id: I31afbc6182d45809eb1caa0f5162cbbce48d1c01
2018-04-12 15:28:36 -07:00
Tracy Zhou
fd21de4489 Move QuickStep onboarding strings from Launcher to SysUI (Pt. Launcher)
Bug: 70180942
Test: N/A
Change-Id: I05e6ce27630d478a40a52bf59a9dfd25881213be
2018-04-12 11:08:28 -07:00
Tony Wickham
430bc2cd0d Merge "Rename LandscapeStatesTouchController -> OverviewToAllAppsTouchController" into ub-launcher3-master 2018-04-12 18:03:31 +00:00
Sunny Goyal
2998e43256 Merge "Listen for cases where touch controllers change, and update them" into ub-launcher3-master 2018-04-12 00:37:22 +00:00
TreeHugger Robot
a64b41eaf7 Merge "Don't allow swiping down on task to launch when swipe up is disabled" into ub-launcher3-master 2018-04-12 00:29:58 +00:00
Tony Wickham
ffbb5444bb Merge "Don't allow swiping down from overview in fallback recents" into ub-launcher3-master 2018-04-12 00:27:12 +00:00
Tony Wickham
a006830f0a Listen for cases where touch controllers change, and update them
Otherwise we'd be stuck using the old touch controllers until DragLayer
is setup again (e.g. launcher is killed).

Bug: 77921826
Change-Id: I8aac6fc453839902cb2d99279a6bd1549ee17d79
2018-04-11 17:25:40 -07:00
Tony Wickham
6c4eced65d Don't allow swiping down on task to launch when swipe up is disabled
Bug: 77921295
Change-Id: I6800f81a5f3edcbed2db1138375f78c5900c6cd4
2018-04-11 17:16:44 -07:00
Sunny Goyal
7eff40ff2d Several app transition fixes:
> If launcher already started, creating the state transition only after threshold crossed, so that previous animations are not cancelled
> Not posting animaiton callbacks at the front of the queue, as that sometimes causes it get executed before onNewIntent
> Farking the activity as forceInvisible while launching an opaque app, so that quickly pressing home/back runs the reverse animation
> Not running state animations when force-invisible is true

Bug: 77830325
Bug: 77898806
Change-Id: I50a7e915ca35fd6aeb284c8f321ecca74396fe98
2018-04-11 17:08:31 -07:00
Tony Wickham
23972338ac Rename LandscapeStatesTouchController -> OverviewToAllAppsTouchController
I find this less confusing, as the controller is also used in portrait
mode when swipe down is disabled.

Change-Id: Ifd6b4453a1b59e1f8305c1461d89ed99de2fe7d6
2018-04-11 17:06:06 -07:00
TreeHugger Robot
e9f31c1014 Merge "Using correct window bounds in multi-window for fallback activity" into ub-launcher3-master 2018-04-11 23:59:16 +00:00
Tony Wickham
6e3591469a Don't allow swiping down from overview in fallback recents
Bug: 77921295
Change-Id: I5a374bed865f03a715cb852e99c86c6e2e119273
2018-04-11 16:58:10 -07:00
Sunny Goyal
3477804c72 Using correct window bounds in multi-window for fallback activity
Also fixing a bug where insets were not updated when recreating deviceprofile

Bug: 77875376
Change-Id: I7806cf949da415ef171ccf2f4ab3e8f2b7606220
2018-04-11 16:43:18 -07:00
Winson Chung
2cb5bddd1c Merge "Reload the task list when multiwindow mode changes" into ub-launcher3-master 2018-04-11 23:32:29 +00:00
TreeHugger Robot
fc72493dd7 Merge "Fixing multi-window task sizes in Recents activity" into ub-launcher3-master 2018-04-11 23:12:50 +00:00
TreeHugger Robot
424db46a44 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-04-11 22:57:28 +00:00