Commit Graph

6667 Commits

Author SHA1 Message Date
Winson Chung
71ba448671 Tweak button animation to be closer to what we had before.
Bug: 77152886
Change-Id: Ibd70eeee8c9de78e6e0b996ed082f701171ce934
2018-04-09 21:04:47 -07:00
Sunny Goyal
82d2074cd2 Merge "Do not reset the previous state animation, if it is a part of the new state animaiton" into ub-launcher3-master 2018-04-10 03:02:02 +00:00
Tony Wickham
97b658f289 Merge "Can now swipe away to dismiss second task" into ub-launcher3-master 2018-04-10 00:13:05 +00:00
Sunny Goyal
68c47c5620 Adding task open animation in fallback activity
Change-Id: I9a861cc4162b98c067061afad42631dc4fa0e3e2
2018-04-09 17:03:41 -07:00
Sunny Goyal
b35f50cf55 Do not reset the previous state animation, if it is a part of the new state animaiton
Change-Id: Ic433db8cd2b0701923185d0a2db2a4361567437f
2018-04-09 16:31:12 -07:00
Tony Wickham
52c7b8c6ac Can now swipe away to dismiss second task
Previously we only allowed dragging the forefront task. Now you can
swipe up to dismiss the second task as well, but can't drag it down to
launch.

Also cleaned up page-scroll-while-dismissing logic to ensure it works
correctly in RTL and for new cases with dismissing adjacent pages.

Bug: 73187449
Change-Id: I1fe873c4cf1380b951dd3b2e396ab401ca1f7470
2018-04-09 16:04:21 -07:00
TreeHugger Robot
5515600732 Merge "Automatically switching the ActivityController based on the default home app preference" into ub-launcher3-master 2018-04-09 21:49:51 +00:00
Sunny Goyal
681bab045a Fallback recents activity fixes:
> Always deferring the start activity call
> Fixing quickscrub when start activtiy is deferred
> Preventing finish() call on the activity
> Fixing initTrack to work when the activity already exists

Bug: 75979063
Change-Id: Id6038c1f6c2680ec920222fb6a85c0ecc0172ed4
2018-04-09 14:18:39 -07:00
Sunny Goyal
59f2094dd6 Automatically switching the ActivityController based on the default home app preference
Bug: 75979063
Change-Id: If7a173cc56da021094ab9770dee26fb61ac20dd3
2018-04-09 13:25:50 -07:00
Sunny Goyal
38d2bf3504 Merge "Making QuickScrub work, when the fallback activity is on top" into ub-launcher3-master 2018-04-09 17:36:43 +00:00
TreeHugger Robot
a4e8763d11 Merge "Updating the card size logic" into ub-launcher3-master 2018-04-09 17:20:31 +00:00
TreeHugger Robot
eec189c0fc Merge "Removing Launcher assumption from OverviewCommand, so that it works with fallback activity" into ub-launcher3-master 2018-04-09 17:20:29 +00:00
Sunny Goyal
df336cf685 Making QuickScrub work, when the fallback activity is on top
Bug: 75979063
Change-Id: If8029901ad1f99551b3eba74620616edf6f993ef
2018-04-09 10:06:03 -07:00
Sunny Goyal
926ba83726 Elevate GPU priority of Launcher3Quickstep
Bug: 75985430
Change-Id: I4ac70c76db98b4ab666b0559f3185392142be045
2018-04-09 09:23:28 -07:00
Jorim Jaggi
f4beeb8dfb Enable early wakeup during transitions
We hit GL comp likely on some devices so we start composing
earlier to avoid jank.

Bug: 75985430
Change-Id: I94ff218c79fb512002a2fb7f8aa600d6662f269e
2018-04-09 16:45:06 +02:00
Tony Wickham
9ae484b95d Merge "Log dismissing or launching recent tasks" into ub-launcher3-master 2018-04-06 22:55:50 +00:00
Tony Wickham
3541ac10a1 Merge "When dragging past first or last state, don't reinit target" into ub-launcher3-master 2018-04-06 22:51:06 +00:00
Tony Wickham
9bd862e588 Log dismissing or launching recent tasks
We now pass the log action (e.g. SWIPE or FLING) to the pending
animation, so that the end listener can log appropriately. This
is used when swiping down or up on a task, for example.

Bug: 73783784
Change-Id: I5c2eee24e8b23cf4af68d503d3435a6d8088dd8a
2018-04-06 15:41:39 -07:00
Tony Wickham
6270a0ea18 When dragging past first or last state, don't reinit target
Example bug:
1. Swipe up to overview and let go
2. Swipe all the way to the top of the screen, past where all apps stops
3. Swipe down

Before this change, you get reset in NORMAL state instead of OVERVIEW.

By ensuring that getTargetState() checks the drag direction before
returning a new state, we guarantee we only re-init in the case that the
state is actually changing. Otherwise it's possible to change the state
to one that is impossible, such as NORMAL when swiping up from ALL APPS.

Change-Id: I19913dded9c94228d06289780b6400e99403f378
2018-04-06 14:32:18 -07:00
Tony Wickham
a4984f3df8 Merge "Ignore touch events on task view when menu is open" into ub-launcher3-master 2018-04-06 19:29:22 +00:00
Sunny Goyal
d792a77234 Updating the card size logic
In full screen always follow the device aspect ratio
In multi-window, follow the 1:1 split window size
Rotate the screen shot only in full-screen mode

Bug: 70289009
Change-Id: Id5095565634d4d7920fefa929b28276db80bda5f
2018-04-06 11:29:32 -07:00
Sunny Goyal
0635de29a9 Removing Launcher assumption from OverviewCommand, so that it works with
fallback activity

Bug: 75979063
Change-Id: I3a851f6ce4725cee590eac9004eff1180f3780bb
2018-04-06 08:44:03 -07:00
Tony Wickham
f3c10bf15f Ignore touch events on task view when menu is open
For example, long pressing icon and then dragging in the same motion
should be ignored

Bug: 77652647
Change-Id: I9cc53c2873950f216d51d90f749b3cc0d0744d3c
2018-04-05 18:44:26 -07:00
TreeHugger Robot
9bf5113e06 Merge "Fixing taskView sometimes visible during swipe-up transition" into ub-launcher3-master 2018-04-06 00:22:48 +00:00
Sunny Goyal
a0c9d90e70 Fixing taskView sometimes visible during swipe-up transition
Caused by change-id: I4defce3a9745407523de651aeb28a37867567507

Change-Id: I670e20da6086d257b4de45d4e1310ef6b4314c46
2018-04-05 17:06:39 -07:00
TreeHugger Robot
4b3551e976 Merge "Add null check for empty recents view" into ub-launcher3-master 2018-04-05 23:09:46 +00:00
Tony Wickham
0164d7d346 Add null check for empty recents view
Bug: 77533523
Change-Id: I8ba58d3ed35212b6c06e689281cb25b55ac79ae2
2018-04-05 16:00:09 -07:00
Sunny Goyal
ca90706994 Merge "Simplifying fallback recents animation" into ub-launcher3-master 2018-04-05 21:31:14 +00:00
TreeHugger Robot
cf24463035 Merge "Make drag handle visible in overview landscape mode." into ub-launcher3-master 2018-04-05 21:08:06 +00:00
Jon Miranda
73387743d7 Make drag handle visible in overview landscape mode.
Bug: 77552542
Change-Id: Ia05662f83dc865b7a1a134e225373a804d26fc3e
2018-04-05 13:57:07 -07:00
Sunny Goyal
9054843a1f Simplifying fallback recents animation
Instead of using WindowTransformSwipeHandler, keeping the launcher UI in place and
just animating the window

Change-Id: I4defce3a9745407523de651aeb28a37867567507
2018-04-05 13:51:21 -07:00
Tony Wickham
d3897cbab7 Parallax all apps up slightly as you swipe up from overview
Change-Id: Ib587844ca8a5a61322902c5415eef19186062aa2
2018-04-05 12:20:06 -07:00
Sunny Goyal
83bf457aaa Fixing crash when starting transparent activities
StateManager was setting the transition lenght to 0 when a workspace state transtion
was being created as part of launching a transparent activity.

Bug: 77635129
Change-Id: Ie9f40138d9b1387ba880bca0fbf130a4872e8733
2018-04-05 10:28:23 -07:00
Winson Chung
7296dc19b9 Fix crash when launching translucent activities.
Bug: 77604451
Change-Id: I618d98a437e36e872faee2bbb07d9b8bf8779dbd
2018-04-04 17:29:54 -07:00
Tony Wickham
8da28f5010 Fix quick scrub transition from home
We were snapping to page 0, which is a no-op but interferes with
the state transition.

Change-Id: I85b39a26c513e63686ad176ac851711b466d3df3
2018-04-04 15:26:34 -07:00
TreeHugger Robot
e976ca950b Merge "Fix animations home" into ub-launcher3-master 2018-04-04 22:02:14 +00:00
Sunny Goyal
381570588c Merge "Make recents animation work with fallback activity." into ub-launcher3-master 2018-04-04 21:53:03 +00:00
Tony Wickham
81839b86b2 Merge "Change overview animation to scale instead of translationX" into ub-launcher3-master 2018-04-04 21:40:15 +00:00
Winson Chung
9800e730a2 Fix animations home
- To prevent surface thrashing, we no longer hide the home activity before
  starting the transition home. This prevents the launcher from being added
  to the remote animation target list, which means that we default to
  skipping the launcher animation. As a workaround, we special case the
  flow and force the animation to run when starting the recents animation.

Bug: 74405472
Test: Go home from an app, ensure there is an animation.
Change-Id: Ifd2b39444fdeab323ee79a368b580a6264c3e5b9
2018-04-04 14:36:40 -07:00
Winson Chung
bc5bfc1119 Make recents animation work with fallback activity.
Bug: 77157702
Bug: 77152886
Change-Id: Ide312b750efb8214a7c262f7380b5dbd2ef4647f
2018-04-04 14:36:33 -07:00
Tony
0c95559cbc Change overview animation to scale instead of translationX
As you swipe up to overview from home, workspace scales down and fades out as before,
and now recents scales down from 1.2f on top of it. The interpolators are set such
that the workspace animation is seen before the recents animation. Also, we don't
scale down all of recents, only the visible pages (current and adjacent).

Change-Id: I5f8bfe8cafeaa41d26873c63549735d7bdff2bce
2018-04-04 13:48:42 -07:00
Vadim Tryshev
6c3f6d46de Merge "Removing "Page X of Y" announcement from task list" into ub-launcher3-master 2018-04-04 17:40:30 +00:00
Vadim Tryshev
ac6a6b6bf7 Removing "Page X of Y" announcement from task list
Per accessibility experts request.

Bug: 77549770
Test: Manual
Change-Id: I351527e00e89b1c3e55a3ae4279ac962cd637a13
2018-04-03 18:25:45 -07:00
TreeHugger Robot
e1ad8e8c42 Merge "Opening all apps from all drag indicators" into ub-launcher3-master 2018-04-04 00:31:30 +00:00
Vadim Tryshev
fe48b7a577 Opening all apps from all drag indicators
Both the one on Home and the one on Overview open app apps.

Bug: 72500733
Test: Manual
Change-Id: I524937a2baed71f1dafd92add06657ae13d71ca1
2018-04-03 17:22:28 -07:00
TreeHugger Robot
6097be232f Merge "Ensuring that previous animation is completed before starting a new state animation" into ub-launcher3-master 2018-04-03 20:53:26 +00:00
Winson Chung
c58900ca81 Merge changes from topic "same_shared_lib" into ub-launcher3-master
* changes:
  Update dock divider during recents animation.
  Update api for canceling recents animation.
2018-04-03 19:52:47 +00:00
TreeHugger Robot
b6eadfd6fc Merge "Invoking onOverviewShown() on showRecents(false)" into ub-launcher3-master 2018-04-03 19:51:25 +00:00
Winson Chung
dbff75e3de Update dock divider during recents animation.
- Move all wrapper calls to the bg thread
- Account for position now that the task leash is in the app animation
  layer

Bug: 73118672
Change-Id: I5b680a688c0ad4ca34c76e22e1d5cee24133f40f
2018-04-03 12:42:09 -07:00
Winson Chung
8ad31511a6 Update api for canceling recents animation.
Bug: 74405472

Change-Id: Idb2fdec88115927a2db94e0216b1bea8386e6f23
2018-04-03 12:25:53 -07:00