Commit Graph

1603 Commits

Author SHA1 Message Date
Hyunyoung Song
91cdbe58a2 Merge "Revert "Not using reflection for all limit API"" into ub-launcher3-master 2019-02-07 20:15:49 +00:00
Hyunyoung Song
9ca02567dd Revert "Not using reflection for all limit API"
This reverts commit 8baf921416.

Reason for revert: Constant crash whenever entering recents view

Change-Id: I695aa43686367379b3921a2665db490f6ac983a1
2019-02-07 19:29:16 +00:00
TreeHugger Robot
fa8df691d1 Merge "Fix duration when scrolling back to launch LAST_TASK" into ub-launcher3-master 2019-02-07 00:56:57 +00:00
Lucas Dupin
1ea481ad83 Fix issue where animation progress would be overridden
Change-Id: I7ce6452a5cf412b74b404e8c3400b60660998f22
Fixes: 124001115
Test: visual
2019-02-06 22:21:53 +00:00
vadimt
8baf921416 Not using reflection for all limit API
Bug: 118319143
Test: Manual
Change-Id: I666f19450403f1020a52136a74aa97383c666345
2019-02-06 12:09:18 -08:00
Tony
3c477492de Fix duration when scrolling back to launch LAST_TASK
Bug: 111926330
Change-Id: Ief8b5eb3dc2c50a1a06ea9e3adbf89f6c1cf157b
2019-02-06 11:20:56 -05:00
Tony
f98121939d Allow for continuous scrolling to previous tasks
Starting a new touch interaction on the nav bar while going to a new task
cancels that animation to allow for continuous scrolling.

Specifically, the new interaction still creates a new touch consumer and
WindowTransformSwipeHandler, but reuses the previous RecentsAnimationState
in order to defer finishing it.

Bug: 111926330
Change-Id: Ia4f5f8dbb2b3ae70791676f1e3e5ce84deb22f74
2019-02-05 15:47:13 -05:00
Tony
51745853cb Fix launcher animation component not playing if springs are enabled
Change-Id: I9fe919034f41bb9db3e1acdfd8e87a31c4cf7865
2019-02-05 15:03:32 -05:00
TreeHugger Robot
de9a859c26 Merge "Disable tests relying on event sequence until gestural nav settles" into ub-launcher3-master 2019-02-05 00:34:12 +00:00
vadimt
7d67d53aaf Disable tests relying on event sequence until gestural nav settles
Bug: 120628042
Test: N/A
Change-Id: I3166c2660a5170434b33bbd5eddceddd483e7502
2019-02-04 14:18:24 -08:00
Vadim Tryshev
fe9b3e6a07 Merge "Updating sysui_shared" into ub-launcher3-master 2019-02-04 20:29:42 +00:00
Vadim Tryshev
453fb8b7d8 Merge "Support for a test for pausing an app via Overview." into ub-launcher3-master 2019-02-04 19:53:24 +00:00
vadimt
682be49c8d Updating sysui_shared
Bug: 123775469
Test: showing a task in Overview
Change-Id: I531da929c5fe51fd7046347b9c02916f37b554b5
2019-02-04 11:52:20 -08:00
Bill Yi
2c3aa0c0cf Import translations. DO NOT MERGE
Change-Id: Iff9eaa06498b8641ac0225f0b9c778db8b926189
Auto-generated-cl: translation import
2019-02-02 00:41:03 -08:00
TreeHugger Robot
6be077a287 Merge "Using an official API for opening DWB properties of a task" into ub-launcher3-master 2019-02-02 01:15:16 +00:00
vadimt
1d9ecae30e Using an official API for opening DWB properties of a task
Bug: 118319143
Test: Manual
Change-Id: Icd0851787e08f2ce06c4fc33048f8a632903476a
2019-02-01 16:53:52 -08:00
TreeHugger Robot
6a6f0ff961 Merge "Stub out BackgroundApp/FastOverview states for Go." into ub-launcher3-master 2019-02-01 22:44:32 +00:00
TreeHugger Robot
bc374ef423 Merge "Move app => overview anim out of OverviewCommandHelper" into ub-launcher3-master 2019-02-01 21:30:38 +00:00
Kevin
600c1e4cbf Move app => overview anim out of OverviewCommandHelper
This moves the core animation provider logic out of
OverviewCommandHelper to a separate class to divide out the class
responsibilities a little more and make it easier to override only the
animation logic in the future.

Bug: 114136250
Test: Manual test Launcher3QuickStepGo and NexusLauncher
Change-Id: I803431f9312eb1dca1233848f63a4be1b04469ef
2019-02-01 11:13:24 -08:00
Kevin
4dcf354ea4 Stub out BackgroundApp/FastOverview states for Go.
Go's recents will not have swipe up to overview so there is no need to
have BackgroundAppState. We also do not support quickstep so we don't
need a distinct FastOverviewState. So we stub them out here.

Bug: 114136250
Test: Manual test Launcher3QuickstepGo + NexusLauncher
Change-Id: I9223cd35fc3c64688cda16dcaa1d5f40460c9323
2019-02-01 09:54:17 -08:00
Tracy Zhou
bf9459b8ed Make sure that live tile feature is compatible with scrolling towards previous app.
Change-Id: I5d6e3bfe22a505f0c77a6f7f627e9248e63ea6e0
Fixes: 123720385
Test: scroll or fling towards the previous app, it will settle on it and launch it.
2019-01-31 16:33:02 -08:00
Tony
7f3e7e7b74 Fix adjacent task positioning for consecutive swipe gestures
- Always use the recents scale down animation when coming from BACKGROUND_APP state
- Adjust scale down animation to calculate based on translationY = 0 instead of
  translationY > 0 if it is still set from a previous interaction
- Fallback to using launcher's insets in the case that a task doesn't yet have
  thumbnail data (we remove the data when the task stack is invisible, so it
  might not yet be restored if you swipe up again too quickly)

Bug: 111926330
Change-Id: I4bf0bf1b2fa564f0a2c27e7c053c2216856cb024
2019-01-31 16:32:42 -05:00
TreeHugger Robot
9d8f5bfe01 Merge "Tighten up dismiss animation springs." into ub-launcher3-master 2019-01-31 04:41:10 +00:00
TreeHugger Robot
3c92d8d6b3 Merge "Split LauncherActivityControllerHelper for Go" into ub-launcher3-master 2019-01-31 03:32:18 +00:00
Kevin
be973bfe18 Split LauncherActivityControllerHelper for Go
As Go will likely have very different implementation since it will be
replacing the app => overview animation, we split
LauncherActivityControllerHelper so that Go can override the class
completely.

Bug: 114136250
Test: Manul test NexusLauncher, Launcher3QuickStepGo, Launcher3IconRecents
Change-Id: Ia5554593ddafffe0f729a4658d0a37aed16d236b
2019-01-30 17:54:56 -08:00
Jon Miranda
391f01ac2e Tighten up dismiss animation springs.
Bug: 123545613
Change-Id: I36316295e12362def6b845885d339d228d8192a5
2019-01-30 16:50:45 -08:00
Tracy Zhou
505f9a9565 Merge "Finish recents animation when user long swipes to all apps." into ub-launcher3-master 2019-01-30 23:38:57 +00:00
TreeHugger Robot
80748ae6f4 Merge "Increasing char limit for string, per localization request." into ub-launcher3-master 2019-01-30 21:28:19 +00:00
TreeHugger Robot
5b1cd9cecb Merge "time_left_for_app: increasing limit" into ub-launcher3-master 2019-01-30 21:28:17 +00:00
vadimt
5c749392bd time_left_for_app: increasing limit
Bug: 123638440
Change-Id: I20a444edfdad737206fcbcb9ab5c2b7c1d1973da
Tests: emulated a string with this size
2019-01-30 13:17:36 -08:00
vadimt
21550b4673 Increasing char limit for string, per localization request.
Bug: 123638453
Change-Id: I40aea84f88cb91e4cd123fa0181894867c0e02f7
Tests: none
2019-01-30 13:04:07 -08:00
TreeHugger Robot
4229752c3b Merge "Split OverviewToAllApps for Go" into ub-launcher3-master 2019-01-30 20:59:02 +00:00
TreeHugger Robot
83be8b20dd Merge "Move ActivityControlHelper impl to upper level" into ub-launcher3-master 2019-01-30 20:27:39 +00:00
Tony Wickham
42dec18638 Merge "Make quick switch ("hook") more reliable" into ub-launcher3-master 2019-01-30 19:56:23 +00:00
vadimt
01e8871b54 Support for a test for pausing an app via Overview.
Bug: 117888000
Change-Id: If9fc76ddfbc756acf39ad5209904d3099c2e4e5f
Tests: on the Nexus side
2019-01-30 11:39:56 -08:00
TreeHugger Robot
abdb80a6d0 Merge "Adding dismiss-all method" into ub-launcher3-master 2019-01-30 19:06:06 +00:00
TreeHugger Robot
bc7011a5d2 Merge "Fixing AOSP TaplTestsLauncher3.testAllAppsFromHome test" into ub-launcher3-master 2019-01-30 18:41:58 +00:00
TreeHugger Robot
43d984b766 Merge "Fix swiping up to Overview in landscape mode" into ub-launcher3-master 2019-01-30 18:41:36 +00:00
vadimt
8ac8d29121 Adding dismiss-all method
See the bug.

Bug: 123259701
Change-Id: I4b41d2cfe14c53db1a99cb6a693d3047057fa925
Tests: testOverview
2019-01-30 10:36:52 -08:00
TreeHugger Robot
d655eb2fe8 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-01-30 04:19:42 +00:00
Bill Yi
2aeee4ba55 Import translations. DO NOT MERGE
Change-Id: Ic9282c2ed62a6ac88e8e61f309f1dfffdf1e487a
Auto-generated-cl: translation import
2019-01-29 19:35:37 -08:00
vadimt
44d227a5b8 Fixing AOSP TaplTestsLauncher3.testAllAppsFromHome test
On the AOSP target, there are not enough apps to make App Apps
scrollable. Moving the test to QS Tapl tests.

Change-Id: I95e196bafdbd0fee77705554890a7c3cda7ac92a
Tests: the affected test
2019-01-29 17:23:25 -08:00
Tracy Zhou
f13380543f Finish recents animation when user long swipes to all apps.
Change-Id: I4b7c419236f3a31f882d8bf5a7f526cb7310215a
Fixes: 123601356
Test: Long swipe to all apps. Release and swipe down to home. Make sure live tile is gone.
2019-01-29 17:19:45 -08:00
Tony Wickham
023f404a12 Make quick switch ("hook") more reliable
- Add max orthogonal displacement to MotionPauseDetector to avoid
  pausing when swiping left or right
- When gesture in ambiguous between swipe up for home or swipe over
  for the new task, base the decision on the faster velocity component
- Disable recents freescroll mode when dispatching motion from the nav
  bar. This way recents handles it naturally and we don't need custom
  logic to snap to the next page at the end of the gesture.
- Fix a bug where you couldn't hook to start a new task when SWIPE_HOME
  was disabled

Bug: 111926330
Change-Id: If63aa2bb32b57c3f401c5df8b3f6f4efec97b1fa
2019-01-29 17:11:12 -08:00
Kevin
701b82c838 Move ActivityControlHelper impl to upper level
This CL moves the implementations of ActivityControlHelper from an inner
class to an upper level class in preparation to override the
implementation-specific logic for Go.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3QuickStepGo
Change-Id: Ic4b004f57cde263414c8dc57fe5c868dabc00dbe
2019-01-29 14:54:34 -08:00
Kevin
3d5551a18e Split OverviewToAllApps for Go
This CL swaps out the current OverviewToAllApps touch controller with
the Go specific implementation. Moreover, since we only use this class
in landscape, we rename it to LandscapeStatesTouchController to avoid
confusion.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3QuickstepGo, Go recents
Change-Id: I6025cfe9f400705a4666fd92298a08a0c0ef7202
2019-01-29 13:13:04 -08:00
TreeHugger Robot
b3ca6aee2c Merge "Changing min sdk to 25" into ub-launcher3-master 2019-01-29 20:43:01 +00:00
TreeHugger Robot
5aabc55780 Merge "Add springs for recents dismiss animations." into ub-launcher3-master 2019-01-29 20:35:02 +00:00
Jon Miranda
86f6c449a7 Add springs for recents dismiss animations.
Bug: 111698021
Change-Id: If518ba5946ea6fada67f549f2f29e1ab1c89969d
2019-01-29 12:13:57 -08:00
TreeHugger Robot
8d4430a1d7 Merge "Splitting TaplTests into a pure AOSP and QS parts" into ub-launcher3-master 2019-01-29 20:10:51 +00:00