Commit Graph

400 Commits

Author SHA1 Message Date
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
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
Winson Chung
873cd43326 Merge changes I838ef4de,I22e2948a into ub-launcher3-master
* changes:
  Use onQuickStep call from SysUI
  Workaround for ensuring dummy task view has valid task
2018-03-28 23:42:37 +00:00
Winson Chung
19adf653bd Use onQuickStep call from SysUI
Change-Id: I838ef4de2d86abde1848efd757a523c088016756
2018-03-28 16:27:08 -07:00
Tracy Zhou
b1a7f2829e Merge "Move default pip position to right above the shelf (Pt. Launcher)" into ub-launcher3-master 2018-03-28 21:54:57 +00:00
Tracy Zhou
a706f00d78 Move default pip position to right above the shelf (Pt. Launcher)
SysUI change: ag/3721784, ag/3793664

- Track LauncherState and launcher activity state through callbacks.
- Devise logic to send shelf visibility and height signal to SysUI based
on LauncherState and Launcher activity state.

Bug: 73961893
Test:
- By default, pip shows up right above the shelf.
- Transitioning to all apps moves the pip down as the shelf becomes
invisible.
- Going to any specific app moves pip down. Hitting home moves pip
right above the shelf again.
- Dismissing IME should push PIP down but above the shelf on home
screen, bottom if not.

Change-Id: I1ab6ceb8007a5a7b5d932a456efa0a07f586ea4c
2018-03-28 14:40:49 -07:00
TreeHugger Robot
9025aa5317 Merge "Don't add task overlay when thumbnail is rotated" into ub-launcher3-master 2018-03-28 00:14:02 +00:00
Tony Wickham
e7a49dc915 Don't add task overlay when thumbnail is rotated
Change-Id: Ie4088c8c1a1c22a30caddc5bfb6b76e6a42ef088
2018-03-27 17:05:10 -07:00
Sunny Goyal
5b70f51750 Fixing wrong visibility being set for RecentsView
Change-Id: I03890eabe80dd9339a3de9449772ab7fb36a6db1
2018-03-27 15:50:20 -07:00
Tony Wickham
85fd66800d Fix divide by 0
Bug: 76392987
Change-Id: Ib55b3e47b296f4aaa690f7af83c5d92b242ed029
2018-03-27 13:31:39 -07:00
Winson Chung
ef77fd0f40 Workaround for ensuring dummy task view has valid task
- Always assign the first task the running task id so that we can still
  identify it if applyLoadPlan() is not yet called back from loading tasks.

Bug: 76100710
Change-Id: I22e2948a67f532b60415a248d6121febba29b3f6
2018-03-27 10:31:29 -07:00
TreeHugger Robot
932d3b02de Merge changes I438e45d8,I1330cec3 into ub-launcher3-master
* changes:
  Show overview tiles in the orientation screenshot was taken
  Prevent edge gradient for screenshots in correct orientation
2018-03-27 17:00:12 +00:00
Tony Wickham
20bfde3600 Show overview tiles in the orientation screenshot was taken
If the orientation of the screenshot doesn't match the thumbnail view,
we rotate the screenshot 90 degrees. We don't know whether a landscape
screenshot was seascape, so we just assume it's not (i.e. landscape
screenshots always rotate +90 degrees when shown in portrait).

Portrait screenshots rotate so that the bottom aligns with the nav bar,
e.g. rotate +90 in seascape and -90 in landscape

Currently guarded by the flag OVERVIEW_USE_SCREENSHOT_ORIENTATION.

Bug: 74552612
Change-Id: I438e45d89b54ffe41950c8bb9abdbb9a1c33aa40
2018-03-27 09:48:37 -07:00
Tony Wickham
61857f3f39 Prevent edge gradient for screenshots in correct orientation
- Due to rounding issues, the width could be a pixel too small, causing
  a gradient on the right edge
- On tall devices, the height ratio of the task thumbnail might be
  larger than the width ratio, causing the screenshot to be too short
  upon swiping up, and thus a gradient on the bottom edge

Bug: 73540853
Change-Id: I1330cec3d2ff8c98eb1b354f0e7f40c6ea49ad7c
2018-03-26 17:26:40 -07:00
Sunny Goyal
00c9c9a6fc Adding an empty message in RecentsView
Moving the content instead of translating the view. This ensures
that the empty message fades in place while the other content come-in
from the side.

Change-Id: I081d2e21206de24ad530814cb6a8ca7c3e293724
2018-03-26 17:24:12 -07:00
TreeHugger Robot
3d58de67a8 Merge "Adding a custom view for DragHandle" into ub-launcher3-master 2018-03-26 23:03:53 +00:00
Sunny Goyal
81b4c7bb3c Adding a custom view for DragHandle
> Separating page indicator and drag handle
> Page indicator always draws irrespactive of oriantation
> Drag handle is responsible for accessibility interactions
> Adding assissibility actions for DragHandle

Bug: 72500733
Change-Id: I9030337456964af1bdf77f1c01956452321f9229
2018-03-26 15:52:03 -07:00
TreeHugger Robot
658edc6e56 Merge "Making task view accessibility-stoppable" into ub-launcher3-master 2018-03-26 19:29:06 +00:00
TreeHugger Robot
4e57d6cdad Merge "Applying the alpha to individual tasks instead of the view" into ub-launcher3-master 2018-03-26 19:22:30 +00:00
TreeHugger Robot
e006cc902b Merge "Dismissing tasks via keyboard" into ub-launcher3-master 2018-03-26 19:21:24 +00:00
Vadim Tryshev
c911c3da72 Dismissing tasks via keyboard
Bug: 73090995
Test: Press all Del buttons on keyboard, backspace, while in or not in
Alt-Tab.

Change-Id: I22f99c46adbc465373989c58ed831e32fc8e2ba5
2018-03-26 12:13:19 -07:00
Sunny Goyal
a9f554681d Applying the alpha to individual tasks instead of the view
> Removing hotseat from overview in transposed layout
> Removing face scrim from recents view in transposed layout
> Removing focued background from pagesView as individual poges have focus states

Change-Id: I620527241bf7240009c4187f53f5a5cff0c3e2b1
2018-03-26 12:11:00 -07:00
Vadim Tryshev
4ba5e6046f Making task view accessibility-stoppable
This is done by associating an accessibility description with it.

Bug: 72409756
Test: Touch-explore a task in Overview
Change-Id: I988cdc167599406a36c0a3a9bbd0a2ac766ec333
2018-03-26 12:06:24 -07:00
TreeHugger Robot
f757f9cb17 Merge "Use the correct haptics when changing pages" into ub-launcher3-master 2018-03-26 17:43:16 +00:00
Matthew Ng
4ca349c1a2 Use the correct haptics when changing pages
Uses virtual key instead of keyboard tap.

Test: scrub between pages
Bug: 70180755
Change-Id: I72bde319610dd4acf59e5f4eb9f462c106b9a911
2018-03-23 15:35:57 -07:00
Jonathan Miranda
6b34edcc0f Merge "Fix logic to get icon from any view that is a child of DeepShortcutView." into ub-launcher3-master 2018-03-23 21:15:57 +00:00
Tony
e9054e3207 Remove quick switch and improve quick scrub
- Hide hotseat and center recents vertically during quick scrub
  - Don't animate the state change if launcher wasn't already visible, but still
    wait until the window animation completes before scrubbing past the next app
- Change interpolator of window as it scales offscreen during quick scrub, so that
  it gets out of the way faster and you can see the motion of the next app taking
  its place
- Remove haptic when snapping to task when quick scrub starts (there's already a
  haptic from the home button)

Bug: 70180755
Change-Id: I83f25bc8b791da0676c13fd62698e1f486dc016f
2018-03-22 15:50:19 -07:00
TreeHugger Robot
bd590a4cd6 Merge "Focusing on the second task on Alt+Tab" into ub-launcher3-master 2018-03-22 21:02:35 +00:00
Vadim Tryshev
7f55336505 Focusing on the second task on Alt+Tab
Reusing the quick scrub codepath. I’m postponing the cleanup with
removing duplicated code and isolating the reused code so that it’s
separated from touch events.

I’m accumulating the cleanup notes in a doc, and will create a Q bug
from them at the end.

This CL leaves mOverviewCommandHelper.onOverviewShown/Hidden() unused,
but we may use them later when implementing the case when System UI
invokes the callback with different params.

Note that the noew code works even when Alt+Tab is pressed while the
Overview is already open.

Bug: 73090995
Test: Alt+Tab. Alt+Tab while Overview is open.
Change-Id: Iba05c5628959b3640ddd643dead0fba3ae4714c1
2018-03-22 13:40:46 -07:00
TreeHugger Robot
d3b4dfa7e3 Merge "Fixing drag and drop states" into ub-launcher3-master 2018-03-22 20:08:52 +00:00
Sunny Goyal
da3cc7a939 Fixing drag and drop states
> Not sending acceptDrop if we are not dragging
> Removing workspace scrim in all-apps

Bug: 74775232
Change-Id: I5b5354ec249d684ffccd4aacd3c47377cc0eb661
2018-03-22 12:50:12 -07:00
Tony Wickham
a6db64f426 Exit from quick scrub if unable to launch task onQuickScrubEnd
Bug: 76152304
Change-Id: I142b1a894d4f1e2dcf18631e0599482ff4845995
2018-03-22 12:20:22 -07:00
Sunny Goyal
25a5472947 Resetting UI at the end of every app transtion (instead of using a global reset)
Bug: 76145902
Change-Id: Ia7851026b5e33a67434787bd10441fe714bfc64b
2018-03-22 09:31:43 -07:00
TreeHugger Robot
fa03e181cf Merge "Support multiple Views of extra hotseat content" into ub-launcher3-master 2018-03-22 02:52:42 +00:00
Winson Chung
84aa5ef1dc Merge "Disable the two-swipe when quickstep is disabled." into ub-launcher3-master 2018-03-22 01:24:15 +00:00
TreeHugger Robot
c8fd022bbe Merge "Swipe interaction changes on home screen" into ub-launcher3-master 2018-03-22 01:15:51 +00:00
Sunny Goyal
7a80b59e97 Swipe interaction changes on home screen
> Increasing the distance to travel for the first swipe
> Adding support for custom interpolators when building an animation
> When quickly swiping twice from home, finished the first animation

Change-Id: Ibc3c8667e9b927376fd99f08f0ca027f2398914b
2018-03-21 17:55:35 -07:00
Winson Chung
edb0d6b429 Disable the two-swipe when quickstep is disabled.
Change-Id: I5eee57def216406fd8f7766ba4b87cd5de98f0a4
2018-03-21 17:50:29 -07:00
Tony Wickham
e2b9a2a074 Merge "Slightly scale down adjacent recent pages" into ub-launcher3-master 2018-03-22 00:37:02 +00:00
Tony Wickham
5eb4a1e90d Slightly scale down adjacent recent pages
Bug: 70179222
Change-Id: Iad0c6f87af633dab4d5c7b67da73bd8027c37c5d
2018-03-21 17:20:09 -07:00
Tony Wickham
a97f0f20cd Support multiple Views of extra hotseat content
Also adjust workspace page indicator:
- Center vertically
- Rounded corners

Change-Id: I96c2f3da3522d70726f544126b516c33c8fb7bc8
2018-03-21 15:53:11 -07:00
Vadim Tryshev
9869f75825 Handling arrow keys in Overview
Bug: 73090995
Test: Tab, Shift-Tab, left, right: when overview is opened via Alt+Tab
or via touch.

Change-Id: Ifb05027da2f6b9c2a9a2320cec7015e5cc82d633
2018-03-21 15:48:50 -07:00
Tony Wickham
81bd3f57cf Merge "Separate some elements to set visibility separately" into ub-launcher3-master 2018-03-21 20:04:31 +00:00
TreeHugger Robot
40b8059751 Merge "Solving losing [Alt+]Tab events" into ub-launcher3-master 2018-03-21 19:55:07 +00:00
Tony Wickham
bd6f05e0b6 Separate some elements to set visibility separately
Added entries for:
- All apps header extra content
- Hotseat extra content

Change-Id: I47c4ccfe3b54fd47cbbee88698ed045611e3e92d
2018-03-21 12:15:48 -07:00
TreeHugger Robot
2fc7f319fc Merge "Adding support for single tap & double tap on the recents button" into ub-launcher3-master 2018-03-21 16:50:38 +00:00
Sunny Goyal
4f37b93e9b Adding support for single tap & double tap on the recents button
Bug: 75979063
Change-Id: I4dd0595cf94edf77dbedad56f047d86aaf227dac
2018-03-21 09:42:16 -07:00
Tony Wickham
c1b6157398 Merge "Hide back button in drag-n-drop and quick scrub" into ub-launcher3-master 2018-03-20 23:06:11 +00:00
TreeHugger Robot
1fd6dbeb4e Merge "Not opening current task for closed Recents" into ub-launcher3-master 2018-03-20 21:32:36 +00:00
Tony Wickham
76cf236596 Hide back button in drag-n-drop and quick scrub
Add a state flag to hide the back button, used by NORMAL, SPRING_LOADED,
and FAST_OVERVIEW states.

Bug: 74390697
Change-Id: Ifdb2aa41691db4594ea597fc5b5839967711b43d
2018-03-20 14:18:34 -07:00