Commit Graph

11894 Commits

Author SHA1 Message Date
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
Winson Chung
c2b64829a7 Merge "Added two touch slops for easier home press (3/3)" into ub-launcher3-master 2018-04-03 19:22:56 +00:00
Vadim Tryshev
9c5ece3eec Invoking onOverviewShown() on showRecents(false)
If a CTS test wants to show Recents in split-screen mode, we call this
and the test passes :) This is good enough for now.

Bug: 77275679
Test: atest android.server.am.ActivityManagerSplitScreenTests#testDockedStackToMinimizeWhenUnlocked
Change-Id: I5ac1b2890f70a48d86b7b0e85b6ebb8263843484
2018-04-03 19:18:59 +00:00
Tony Wickham
1c6f12d119 Swipe down on hotseat to launch recent task
If you're ever in overview and swipe down on the hotseat, it will launch
the focused task *unless* you entered overview from the workspace and
have not scrolled past the first task. This is a hidden state to allow
for reversibility of the swipe up from workspace.

Also moved PendingAnimation from quickstep to launcher3.

Change-Id: Iea077bc0ef7c74f6bf7b98d0a638892b9c5fe36c
2018-04-03 11:20:49 -07:00
Tony Wickham
274b9529ff Support swiping between states
- Swiping down on hotseat from overview goes to workspace
- Can swipe up through overview to get to all apps

Bug: 76449024
Change-Id: I7f76d92da976e268cc2a97e55746cca4603e6620
2018-04-03 11:18:18 -07:00
TreeHugger Robot
5e2bcab011 Merge "Do not show overview when deviced has pinned" into ub-launcher3-master 2018-04-03 00:57:46 +00:00
Matthew Ng
cd7690d789 Do not show overview when deviced has pinned
Prevents launching overview when recents button is pressed while pinning
an app. This only occurs if quick step is disabled.

Test: disable quickstep, pin an app and try to go to overview
Change-Id: I0d453c2b6f6ebc7947de670b6cf5d09705f9188e
Fixes: 76702534
2018-04-02 17:13:36 -07:00
Sunny Goyal
1c6d566870 Ensuring that previous animation is completed before starting a new state animation
Bug: 76231621
Bug: 77150113
Change-Id: I086e8063b08d2ba69ead1bd0ee1772d65fb6075c
2018-04-02 15:29:47 -07:00
Tracy Zhou
0f5b12c3d3 Mask work app snapshots in QuickStep when work profile is locked.
Change-Id: I15b03a98d5f359a3b8ce28893fa183bb6af1d7d1
Fixes: 72807386
Test: manual test
2018-04-02 20:30:58 +00:00
Matthew Ng
e1a9c7ed3f Added two touch slops for easier home press (3/3)
The first slop starts the drag either for quick step or scrub. At this
point either launcher can animate swipe up or the home button moves for
scrub, however the home button is still active and can be pressed or
long pressed. The second slop is for activating quick step or scrub.
Similar to before when an operation has activated, the home button
cannot be pressed or long pressed. This allows the home button to have a
larger area to be clicked.

Change-Id: Ie792845a09ecf5d8bdbeae9e8ef7210e2299c69d
Fixes: 76430825
Test: scrub or swipe up
2018-04-02 10:59:00 -07:00
Vadim Tryshev
ac2042a40a Accessibility options for a task
The list is:
Close [task]
<items from the task’s popup menu>

Also making a current task in carousel get accessibility focus. This
prevents losing focus after closing a task, and makes sense generally.

Bug: 72409756
Test: Manual
Change-Id: I2cfdfd4693a255f63417d922cb6aa4841db1d3c3
2018-03-30 18:19:03 -07:00
TreeHugger Robot
3a3878979c Merge "Updating fallback activity" into ub-launcher3-master 2018-03-30 23:53:22 +00:00
Winson Chung
953a8eb35c Fix crash when swiping up from task that doesn't appear in the list
Bug: 74567248
Test: Clear all tasks, open assistant and swipe up
Change-Id: Ie5e81ffbc921f76eb6b279f38b5e7aa423fc5af2
2018-03-30 23:05:22 +00:00
TreeHugger Robot
d55869fa4f Merge "Fixing Transition Delay - Hot Launch From Recents on Pixel 1" into ub-launcher3-master 2018-03-30 19:43:59 +00:00
Vadim Tryshev
2c09d2f972 Fixing Transition Delay - Hot Launch From Recents on Pixel 1
Generating fake to-recents event upon pressing square button with no
active task.

Bug: 72967764
Test: Transition Delay - Hot Launch From Recents on Pixel 1
Change-Id: I36fdfe9d356c7678deee37b706f1abecfbfdc812
2018-03-30 12:34:26 -07:00
TreeHugger Robot
3ef1ae174f Merge "Fixing LauncherState not getting applied in some cases" into ub-launcher3-master 2018-03-30 18:52:18 +00:00
Tony Wickham
76642ae892 Improve quick scrub auto-advance
- Explicitly list thresholds, including for auto-advance
- Thresholds for auto-advance are smaller, so you only reach them if
  you scroll to the edges of the track
- Because auto-advance is it's own section, removed longer initial
  auto-advance delay
- When moving out of auto-advance, stay on the same page instead of
  jumping back

Bug: 70180755
Change-Id: I4a8926f9ca944ee619cc71a77b893be894248458
2018-03-30 18:11:08 +00:00
Sunny Goyal
41e7328cb5 Fixing LauncherState not getting applied in some cases
> In case of swipe-up from homescreen, super method was not called everytime
> When swiping up from an app, repply() state was skipping as we didn't finish the
  last animation, leading to views staying visible and interactive
> Intercepting touch in RecentsView and pagesView based on visibility

Bug: 76467534

Change-Id: Ia5ef58d508b656f371a32cd2f1de00dd18c6aa5c
2018-03-30 11:06:25 -07:00
Sunny Goyal
ab83773e21 Updating fallback activity
> Wallpaper based theme support
> Light/dark system UI
> Swipe gestures to start and dismiss a task
> Fixing insets and task preview size

Bug: 75979063
Change-Id: Id402e6ac50551a7c0849742e3a0e77df3ead5aa2
2018-03-30 09:45:59 -07:00
Sunny Goyal
76e2775bb6 Moving some methods related to task launch animation to
recents view and related classes.
This allows the common animation to be used in fallback activity.

Bug: 75979063
Change-Id: I2b5bf5e66406621305b9a076793434f9c5cecdfd
2018-03-30 09:30:11 -07:00
Tony Wickham
b80cb40ee1 Merge changes Ia255a7af,I74e74e54 into ub-launcher3-master
* changes:
  Animate TaskView as you swipe down on it to launch
  Calculate task view animation instead of using dimens
2018-03-30 01:03:50 +00:00
Tony Wickham
3a6746ac04 Animate TaskView as you swipe down on it to launch
Bug: 73835352
Change-Id: Ia255a7af8fb6cd972f99de6390e097afc29c1b90
2018-03-29 17:46:47 -07:00
TreeHugger Robot
13c1deacb6 Merge "Enabling opening Overview via Alt-Tab by default" into ub-launcher3-master 2018-03-30 00:46:44 +00:00
Tony Wickham
7a802eb6db Calculate task view animation instead of using dimens
Now we compute the precise scales and offsets to synchronize adjacent
pages with the launched page. Also adjusted all apps progress so that
the predictions/hotseat go offscreen directly based on the opening
window.

Change-Id: I74e74e541c60b3b116e2b5713522bd4a0f5928a7
2018-03-29 09:32:18 -07:00