Commit Graph

362 Commits

Author SHA1 Message Date
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
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
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
Tony
456c6e7cf0 Close floating views when entering quick scrub
Bug: 74904924
Change-Id: I8f5aa923778cb6a36f85562d066f7c6eb8066089
2018-03-20 11:26:24 -07:00
Jorim Jaggi
bb2a605449 Merge "Fix wrong position in first frame" into ub-launcher3-master 2018-03-20 17:47:52 +00:00
Jorim Jaggi
f24c0757e1 Fix wrong position in first frame
mFloatingView wasn't laid out yet when processing the first
animation frame. Force the initial values to make sure we don't
submit a wrong position for the surface.

Test: Open app, take surface trace
Bug: 74220420
Change-Id: Ie0a827969b980eeffa1860e307586d0e648b4834
2018-03-20 18:28:20 +01:00
Sunny Goyal
2e38cf4825 Merge "Changing the overviewState to show appsearch and floating header" into ub-launcher3-master 2018-03-20 17:01:49 +00:00
Sunny Goyal
a246727501 Registering app transition animations with the internal stateManager,
so that the animation is reset when we start a state animation from
launcher

Bug: 74975768
Bug: 75290288
Change-Id: If7f71f087d7bb64fb25c085c476a6fcbc86518e2
2018-03-19 20:11:41 -07:00
Sunny Goyal
7185dd63eb Changing the overviewState to show appsearch and floating header
Change-Id: I2cfd61cfc9978e4c8e4520f0f7217e49e7344c79
2018-03-19 20:02:34 -07:00
Sunny Goyal
9d69c8da9a Abstracting out all the Laucher related logic
> Enabling swipe up geture for fallback activity
> Using a preferecens for showing back button

Bug: 75979063
Change-Id: I8bbb44d8e250428c3da9bde57975dc4f952624be
2018-03-19 19:22:20 -07:00
Vadim Tryshev
204c220f50 Not opening current task for closed Recents
If Launcher is closed manually while Alt-Tabbing, and then Tab gets
released, we now don't activate the current task in Overview.

Bug: 73090995
Test: After Alt-Tab, while holding Tab, close the Launcher by touch.
Then release Tab.

Change-Id: Ic3c2d02b6b7721e0d8948b84e73dee85eedad800
2018-03-20 00:15:23 +00:00
Winson Chung
449b9e7ba0 Merge "Skip launching task if there is no task" into ub-launcher3-master 2018-03-20 00:08:34 +00:00
Vadim Tryshev
332e07207b Solving losing [Alt+]Tab events
When you are in touch mode with Overview open, and press Tab or Alt+Tab,
it will be lost. This is because the upon pressing this key(s), app
gets switched to the keyboard mode. When this happens, the first
navigation ket gets ignored, and instead of navigation, we get focus
and highlight on the first focusable element.

The concept of the touch vs keyboard mode doesn’t fit well Overview
mode, hence the solution is to not let the recents activity to leave the
touch mode. We always keep RecentsView focused when visible. Android
honors the existing focus, and doesn't’ attempt transitioning from the
touch mode.

Bug: 73090995
Test: Manually fetch Overview, press Tab or Alt-Tab. Drag a task with
touch a bit, then press [Alt+] Tab. Repeat. Do the same with Overview
opened via Alt-Tab. Also: before, after and between, also check that Tab
keeps working on the workspace.

Change-Id: If6890ee80e08b03580051cceeac1be9a89ad3656
2018-03-19 16:40:00 -07:00
Vadim Tryshev
b036dbb622 Merge "executing onOverviewXXX actions in UI thread" into ub-launcher3-master 2018-03-19 23:27:54 +00:00
Winson Chung
cb9ae18226 Skip launching task if there is no task
Bug: 75974298
Change-Id: I60a6c27c4dfb983d0f6e9832fb3be1e714cea2e7
2018-03-19 23:25:25 +00:00
Vadim Tryshev
7d8d1319d8 executing onOverviewXXX actions in UI thread
Bug: 73090995
Test: Manually verify that the actions still work
Change-Id: I3488cdb70fe8fe5b7574800894ee1077ceada2c4
2018-03-19 15:51:12 -07:00
Sunny Goyal
4eeafdecd4 Removing screenshot based quickstep logic
Bug: 75324790
Change-Id: Ifa6c2d9db64791f2d8151eda6ecf0d1f7406e1f3
2018-03-19 13:50:11 -07:00
TreeHugger Robot
ce367377aa Merge "Do not abort animations for translucent activities" into ub-launcher3-master 2018-03-19 12:46:15 +00:00
Jorim Jaggi
6c869151c0 Do not abort animations for translucent activities
When Launcher isn't in the opening targets, we should still run
an animation on the closing window, just not on Launcher itself

Test: Close share-sheet with back or home button
Bug: 72686618
Change-Id: I2d55dfa79fe2d2c4bb735cf1a9a4a0b47ff1b7ba
2018-03-19 13:36:35 +01:00
Vadim Tryshev
61f076a34f Accumulating tab presses during animations
Also introducing these animations. Will need to talk to UX regarding
these animations' properties. So far, I'm keeping a growing list of
questions to UX.

Bug: 73090995
Test: Press, Alt-tab, tab with and without shift, press Alt-Tab on
already open Overview.

Change-Id: Ib7250349acc528d14d8702f60b0f205612205478
2018-03-16 11:57:00 -07:00
Jorim Jaggi
35208bbf04 Control SystemUI flags depending on swipe-up progress
Test: Swipe up on light nav/status bar app.
Bug: 73498721
Change-Id: I65805e3b6ad588c3f50fcf8b11d8f2417e35f9ea
2018-03-16 14:19:22 +01:00
Jorim Jaggi
3c0c818970 Only use remote animation definition for ACTIVITY_TYPE_STANDARD
So we don't override any other animations, like for the assistant.

Change-Id: Ia9b7938d40ebfe29de1ef3eb730f798e2bb5f157
Fixes: 72702760
Test: Open/close assistant
2018-03-16 14:18:56 +01:00
Jorim Jaggi
3025fb5c8d Import new lib
Bug: 73498721
Change-Id: Ia9d2bd49d69d566b75355fe12b7127434f18079d
2018-03-16 14:15:45 +01:00
TreeHugger Robot
33b48e2882 Merge "Initial implementation of Overview keyboard interactions" into ub-launcher3-master 2018-03-16 01:33:09 +00:00
Vadim Tryshev
d7af7bb63f Initial implementation of Overview keyboard interactions
Lots of things are not yet implemented or don't work: animations,
fallback mode, taking params into account, dozing etc.

Bug: 73090995
Test: Press, Alt-tab, tab with and without shift, press Alt-Tab on
already open Overview.

Change-Id: Ifd140e27bead4fa52532a04000c0b60923b485be
2018-03-15 18:24:48 -07:00
Winson Chung
8a968fab72 Fix black flash when splitting task
- Draw the thumbnail view and align with the thumbnail bounds instead of
  the whole task bounds with the icon
- Defer animating the task list until after the animation completes

Bug: 73118672
Test: Enter split screen
Change-Id: Ie10c079cb22ae82f3c5974296462abae335ef5a8
2018-03-15 18:00:50 -07:00
Sunny Goyal
0b0847b272 Fixing taskMenu and taskView clicks in fallback activity
> Extracting common methods from Launcher & DragLauncher to base classes
> Remoting some dependencies on Launcher and using the base class instead

Change-Id: I121cacf8a14190b4703cda60bdeb4f79eee69ded
2018-03-15 17:29:43 -07:00
Tony Wickham
39b5534b96 Merge "Small updates for recents launch animation" into ub-launcher3-master 2018-03-15 23:54:56 +00:00
TreeHugger Robot
bac14afd1e Merge "Adding support for prefenrece search in QuickStep" into ub-launcher3-master 2018-03-14 23:10:42 +00:00
Tony
3bb5e8e56c Set RecentView's translationX based on to/from state
Also make sure to reset it when setting the state without animation,
otherwise it's possible for recents to stay translated offscreen
when it's not being animated back (e.g. when swiping up after
launching an app from all apps).

Bug: 74602990
Change-Id: Ib0596c84cfb67242f436f9aba8af53556d5ca743
2018-03-14 22:06:28 +00:00
Sunny Goyal
9da6c526cb Merge "Updating the swipe-to-dismiss animation" into ub-launcher3-master 2018-03-14 19:51:01 +00:00
Sunny Goyal
20a13ff54e Updating the swipe-to-dismiss animation
Swipe to dismiss animates the page translation so that the
final position at the endof swipe is same as the final position
on removing the task view.

Change-Id: I393acd5ae75cd94797bb4f1aa3dd3ec9017cbb47
2018-03-14 12:32:26 -07:00
TreeHugger Robot
d614d66fbb Merge "Fix accessiblity issue around work tab" into ub-launcher3-master 2018-03-14 17:42:25 +00:00
Tony Mak
98f7350f8f Fix accessiblity issue around work tab
1. Instead of always announcing "Apps list", we now announce
"personal apps list" and "work apps list" if tab is there.
2. Fix an issue that "personal" and "work" are announced twice.
3. Work footer is now announced as a group

FIX: 71703082

Change-Id: I0240bc04df09a5599540cfe67f0f48156f285548
2018-03-14 17:32:18 +00:00
Sunny Goyal
f633ef5f43 Adding fallback recents activity
> Refactoring RecentsView to a common base class
> Moving some dependency form Launcher to BaseActivity
> Using the Recents view in RecentsActivity

Change-Id: Ie0e6741d356291e77420798c140c999121de3a0d
2018-03-13 17:22:52 -07:00
Winson Chung
87dd782e40 Merge "Unloading thumbnails from task views once recents is hidden" into ub-launcher3-master 2018-03-13 23:42:46 +00:00
Winson Chung
c7c5158916 Unloading thumbnails from task views once recents is hidden
- Re-enabling the high res thumbnail loader, ensuring that we clean up
  the visible recent tasks when the associated views are removed
- When the recents state is re-entered, we will trigger the loading of
  the data anew (which will usually just fetch data from the existing
  cache if launcher was not stopped)

Bug: 74537246
Change-Id: I9cd69015461e1de34b4b65faeb9adb8aebd1dd3d
2018-03-13 20:47:36 +00:00
Sunny Goyal
7c7be8c20a Simplifying options popup and overview handling
> Removing support for page drag-n-drop from pagedView
> Removing Overview UI from Launcher3 without quickstep and using options popup instead
> Removing touch handlers from CellLayouts and showing options popup based on workspace long press
> Excluding touch outside inset when showing the popup

Bug: 74136505
Change-Id: I34c2a7ff58452db26f5d1a85d554be40fc75f2b8
2018-03-13 12:57:32 -07:00
TreeHugger Robot
fad58c8159 Merge "Set remote animations duration based on animation being run" into ub-launcher3-master 2018-03-13 17:07:27 +00:00
Tony Wickham
02e1875926 Set remote animations duration based on animation being run
Previously we always set the duration to 500, the app launch duration,
but now the animation can resolve to launching a recent task instead,
which uses a shorter duration. This led to effects such as the status
bar transitioning a bit late on those transitions.

Since we don't techinically know whether we are launching an app vs a
recent task until the animation starts (since we need to check the
opening target and corresponding task id), for now we just make an
educated guess based on the view type and launched component.

Change-Id: I8ebf10d24081d474a48a1eea55419651e2214545
2018-03-13 16:57:10 +00:00