Commit Graph

1189 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot
43d984b766 Merge "Fix swiping up to Overview in landscape mode" into ub-launcher3-master 2019-01-30 18:41:36 +00: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
Jon Miranda
86f6c449a7 Add springs for recents dismiss animations.
Bug: 111698021
Change-Id: If518ba5946ea6fada67f549f2f29e1ab1c89969d
2019-01-29 12:13:57 -08:00
Sunny Goyal
8c48d8bea6 Changing min sdk to 25
Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
2019-01-29 11:29:52 -08:00
TreeHugger Robot
9752705e92 Merge "Fix bugs with quickstep springs." into ub-launcher3-master 2019-01-29 18:35:03 +00:00
Sunny Goyal
703ee9f675 Passing proper velocity information when simulating touch events on recents view
Change-Id: I488b8d61c47e49dbdc65b16e2470b171912efc3f
2019-01-28 16:46:48 -08:00
TreeHugger Robot
0428616762 Merge "Adding support for swipe and hold to overview from home screen to all-apps" into ub-launcher3-master 2019-01-29 00:04:59 +00:00
Sunny Goyal
8b2b4e24ee Adding support for swipe and hold to overview from home screen to all-apps
- After the atomic animation ends, overview jumps slightly because the
  normal -> all apps transition puts it at a different position than
  normal -> overview

Bug: 111926330
Change-Id: I6ca359b3ef2fc4d0b6b96229d8bf118bd0db9649
2019-01-28 15:51:19 -08:00
Jon Miranda
f82fd49244 Fix bugs with quickstep springs.
* Listeners weren't getting called properly. We add one listener to the
SpringbjectAnimator and then use that to dispatch to the other listeners.

* We fast finish on both double swipe cases to prevent the shelf from
  ending in an invalid state. This causes a visual jump but this can be
  addressed in follow up CL.

Bug: 111698021
Change-Id: Ifeb55da9dd253d062122a8e1577f94044f688641
2019-01-28 15:47:59 -08:00
Sunny Goyal
e0c5f5d0ab Fixing jump when swiping up because startDisplacement was getting reset in the middle
Change-Id: I6b8be9505ec2bd22bbc76efe81b6f00231645267
2019-01-28 13:02:57 -08:00
TreeHugger Robot
989732be57 Merge "Unifying the two different state listeners" into ub-launcher3-master 2019-01-28 20:34:32 +00:00
Tony Wickham
07f164dc2e Merge "Swipe up to go home, swipe and hold to go to overview" into ub-launcher3-master 2019-01-28 19:59:54 +00:00
Sunny Goyal
7f45514d15 Unifying the two different state listeners
Bug: 123376689
Change-Id: I61d4865044a1bd27ee78002a4083a686233740b7
2019-01-28 11:56:54 -08:00
TreeHugger Robot
80d03d1fa4 Merge "Move overview component logic from OverviewCommandHelper" into ub-launcher3-master 2019-01-28 19:43:32 +00:00
Tony Wickham
18759647f0 Swipe up to go home, swipe and hold to go to overview
- Pause (swipe and hold) detection based on velocity and acceleration,
  so it feels immediately responsive
- Don't show shelf during swipe; peek when swipe pauses
- Disallow long swipe
- If swiping to go home (we didn't detect a pause), animate window and
  launcher together (not final animation, but mechanism is in place)
- Guarded by SWIPE_HOME flag

Bug: 111926330
Change-Id: Ie4af04517c6688e3d649c2971a1aad197837cb3b
2019-01-28 11:37:33 -08:00
Kevin
2a9e3a66bc Move overview component logic from OverviewCommandHelper
OverviewCommandHelper previously managed both updating the current
overview component and interfacing inputs to switch to the
overview activity. This CL splits out the former to a separate
class so that the responsibilities are more focused and the code
can be reused more easily.

Test: Manual test NexusLauncher, Launcher3QuickStepGo by switching to
overview
Change-Id: I4e90918703f351d235f3cb0a45079cbb31b753ab
2019-01-25 15:17:36 -08:00
Tracy Zhou
7eebfc5649 Merge "Make bounce animations less aggressive" into ub-launcher3-master 2019-01-25 20:36:23 +00:00
Vadim Tryshev
44ecb9d7cb Fix swiping up to Overview in landscape mode
Bug: 121280703
Change-Id: I9802c6f547a592be891e7c4f5e8db8dadaa0425d
Tests: TaplTests, locally modified to force Landscape
2019-01-25 12:29:42 -08:00
TreeHugger Robot
90048de773 Merge "Disable window corner rounding on some devices" into ub-launcher3-master 2019-01-25 00:31:52 +00:00
Lucas Dupin
a2074857dc Disable window corner rounding on some devices
Bug: 122347746
Test: visual; on taimen, marlin and walleye
Change-Id: If6ac1c75297dd25ad40d3ec61537e8793bceceb7
2019-01-24 16:19:49 -08:00
Tracy Zhou
c49f3de3bd Make bounce animations less aggressive
Users have reported that both home and shelf bounce animations are pretty aggressive. We should limit the number of times that we show bounce animations for both quickstep and non quickstep users so that they can have a less disturbing experience.

Change-Id: I445fc9c7c6ac8a9c0ef34381fa672bf1b0203737
Fixes: 123356757
Test: Manual test
2019-01-24 15:48:20 -08:00
TreeHugger Robot
f81da5f4ee Merge "Removing querying whether DWB time limit is for a group" into ub-launcher3-master 2019-01-24 23:07:48 +00:00
vadimt
d4c45e8104 Removing querying whether DWB time limit is for a group
This API is removed for Q.

Bug: 118319143
Test: Manual
Change-Id: I1605ba14a914bfe018c4a2f6d974afaea7e51e05
2019-01-24 13:52:49 -08:00
Kevin Han
57f88bd0ec Revert "Remove OverviewToAllAppsController for Go"
This reverts commit 792fcc3aec.

Reason for revert: This class actually manages more than just overview to all apps transitions, and Go needs some form of this for landscape transitions state transitions

Change-Id: I073dcc94dda06ff8d87166d2674927df8f2418f5
2019-01-24 20:36:04 +00:00
Kevin
792fcc3aec Remove OverviewToAllAppsController for Go
Go's recents does not support an overview to all apps transition (as
there will be no hotseat and swiping will be used to navigate the view
itself). As a result, we never need the controller, so we don't take in
the class as a source and do not add it as a touch controller.

Bug: 114136250
Test: Manual test Launcher3QuickstepGo, NexusLauncher,
Launcher3IconRecentsGo
Change-Id: I7fff9d1e8727bd978e84462436e37219c57f7af6
2019-01-23 17:12:44 -08:00
TreeHugger Robot
38e87e8010 Merge "Split LauncherAppTransitionManagerImpl for Go" into ub-launcher3-master 2019-01-24 01:07:34 +00:00
TreeHugger Robot
886f1a1115 Merge "Split OverviewState for IconRecents Go" into ub-launcher3-master 2019-01-23 23:37:41 +00:00
Kevin
c4ad03b9ef Split LauncherAppTransitionManagerImpl for Go
Split LauncherAppTransitionManagerImpl common functionality into a base
quickstep app transition class and subclass for recents-specific
implementation. In addition, override the app transition manager to the
appropriate manager depending on the build.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoWithQuickstep
Test: Build Launcher3GoIconRecents
Change-Id: Iab1b5ae0c75af276879d5e12df95f62a514bf571
2019-01-23 14:59:19 -08:00
Kevin
932ab718fd Split OverviewState for IconRecents Go
Split common functionality in OverviewState so that it can be reused in
both implementations for IconRecents Go and non-Go.

Bug: 114136250
Test: Manual test NexusLauncher, Launcher3GoWithQuickstep
Test: Manual test IconRecentsGo (gets to recents screen w/o crashing)
Change-Id: Ibff5d3573b3b22dcdfda1b0662d4dd219d2e382f
2019-01-23 13:01:57 -08:00
TreeHugger Robot
95ee747f76 Merge "Adding more events for reproducing race conditions during Launcher start" into ub-launcher3-master 2019-01-23 00:10:40 +00:00