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
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
- 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
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
- 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
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
> 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
This is done by associating an accessibility description with it.
Bug: 72409756
Test: Touch-explore a task in Overview
Change-Id: I988cdc167599406a36c0a3a9bbd0a2ac766ec333
- 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
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
> Not sending acceptDrop if we are not dragging
> Removing workspace scrim in all-apps
Bug: 74775232
Change-Id: I5b5354ec249d684ffccd4aacd3c47377cc0eb661
> 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
Bug: 73090995
Test: Tab, Shift-Tab, left, right: when overview is opened via Alt+Tab
or via touch.
Change-Id: Ifb05027da2f6b9c2a9a2320cec7015e5cc82d633
Add a state flag to hide the back button, used by NORMAL, SPRING_LOADED,
and FAST_OVERVIEW states.
Bug: 74390697
Change-Id: Ifdb2aa41691db4594ea597fc5b5839967711b43d