Commit Graph

15649 Commits

Author SHA1 Message Date
Adam Cohen c9a2fac84a Fix proguard flag
-> widget resize frame animations are broken

Change-Id: I138b29d7d99f80462985f9e2445048b3ab690e18
2018-03-19 20:51:26 -07:00
Vadim Tryshev b036dbb622 Merge "executing onOverviewXXX actions in UI thread" into ub-launcher3-master 2018-03-19 23:27:54 +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 08bdb7c06d Merge "Removing screenshot based quickstep logic" into ub-launcher3-master 2018-03-19 21:37:22 +00:00
Sunny Goyal 4eeafdecd4 Removing screenshot based quickstep logic
Bug: 75324790
Change-Id: Ifa6c2d9db64791f2d8151eda6ecf0d1f7406e1f3
2018-03-19 13:50:11 -07:00
TreeHugger Robot 1c75a77df6 Merge "Accessibility improvement around blue user education card" into ub-launcher3-master 2018-03-19 19:18:46 +00:00
Tony Mak 913a7da58c Accessibility improvement around blue user education card
1. Group the entire card into one element
2. Add label for close button
3. Announce closed when the card is gone

FIXES: 74517054

Change-Id: I8fe41d4c5e88276460c3f0486168f0ef56d8fb60
2018-03-19 18:24:23 +00:00
TreeHugger Robot a7c2894097 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-03-19 15:22:00 +00:00
Bill Yi c8e16b42b4 Import translations. DO NOT MERGE
Change-Id: Ic5051814978c57561804797f03548c61575289d9
Auto-generated-cl: translation import
2018-03-19 07:49:00 -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 30444fced7 Merge "Accumulating tab presses during animations" into ub-launcher3-master 2018-03-17 00:13:44 +00:00
TreeHugger Robot 7471548fc6 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-03-16 21:13:12 +00:00
Bill Yi 7ce8ad1c70 Import translations. DO NOT MERGE
Change-Id: I1d302f9e40eb64f48ab1b5535d2a62dd4c18ca55
Auto-generated-cl: translation import
2018-03-16 13:52:30 -07: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
Tony Mak 4f521af287 Fix work tab is not highligted properly
Change-Id: Iffa14e56f16bf67f1c6e605b2d303dd8fb38ba6e
FIX: 71703082
2018-03-15 16:37:34 +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 f985557937 Merge "Only cancel the group notification if launcher canceled last child" into ub-launcher3-master 2018-03-13 16:57:59 +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
TreeHugger Robot 8862ef3396 Merge "Using the task primary color as the background for the wrapped icon" into ub-launcher3-master 2018-03-13 16:49:34 +00:00
Jonathan Miranda 844505819e Merge "Fix window transition when opening app from deep shortcut menu." into ub-launcher3-master 2018-03-13 16:40:19 +00:00
Sunny Goyal 038e454df6 Using the task primary color as the background for the wrapped icon
Bug: 74445840
Change-Id: I6c6248c8c71cc9b27cbf301e36400a983127da18
2018-03-13 09:35:54 -07:00
Tony Wickham fe62454efa Merge "Improve quick scrub" into ub-launcher3-master 2018-03-13 16:26:44 +00:00
Jon Miranda 79d9b632ef Fix window transition when opening app from deep shortcut menu.
Bug: 74109370
Change-Id: I10bbc6d6dd2ead1f4649830795af5d84a346073e
2018-03-13 09:23:50 -07:00
Tony 0f3d892a87 Only cancel the group notification if launcher canceled last child
Bug: 74429562
Change-Id: I82329b84d4d50f89218b431440dccb9ef33b1ba5
2018-03-13 16:20:45 +00:00
Tony 1e6eaea0a4 Improve quick scrub
- Snap to the next task when quick scrub starts, but don't allow
  snapping to further pages until the transition to overview
  completes (to prevent overshooting)
- Simplify quick switch to just launch the task that was snapped
  to in onQuickScrubStart
- Cleanup some state code

Bug: 70180755
Bug: 74014237
Change-Id: I7a4a0f1a568947b1f5e56a27d7328e47b05a675d
2018-03-13 14:50:26 +00:00
Tony 329ce74b7c Fix NPE when recents is empty
Bug: 74551539
Change-Id: I95416903ed7994cd42f1a8af0fb10591781efd5a
2018-03-13 14:09:46 +00:00
Sunny Goyal 7eee62b313 Merge "Ensuring that we finish the last transition before starting a new one." into ub-launcher3-master 2018-03-12 23:22:00 +00:00
Sunny Goyal 6586062f71 Ensuring that we finish the last transition before starting a new one.
> Finishing the active animation instead of cancelling it. This ansures
  that the animation callbacks are called properly and RecentsAnimaiton is finished
> If a transition is already running, using main thread for next transtion so that
  this new transition is not started before the last transition is finished.
> If the transition is expected to finish at Launcher, directly use the Launcher
  consumer. RunningTaskInfo is not updated until the screen shot is complete.

Bug: 74481901
Change-Id: I2b1128f1f2eff0e6bd94b3adb9cef6ae0578bd0c
2018-03-12 15:25:17 -07:00
Vadim Tryshev 2cb4760c42 Generating ACTION_TOGGLE_RECENTS events
Bug: 72967764
Test: atest google/perf/app-transition/sysui-latency-test, watch for 1_*
entries in output

Change-Id: I1bf2bb8f482f6113ed86600afa53407561dc66d0
2018-03-12 13:20:29 -07:00
Tony Wickham dcdeffdfd5 Merge "Code cleanup: remove some unnecessary methods/variables" into ub-launcher3-master 2018-03-12 18:08:11 +00:00
Tony b8f7d9a3ad Small updates for recents launch animation
- Increase translation x of adjacnet tasks, in order to maintain
  gaps between pages
- Fix parallax when launching side task (used to be based on launched
  task's translation, but now that is 0 since there's no curve)

Change-Id: Iace47761a6e0a69982cf2eac34436b7164e60792
2018-03-12 18:07:09 +00:00