Commit Graph

18360 Commits

Author SHA1 Message Date
Kevin b6320aeeb6 Hook up Go recents view API to recents activity
Hook up onBeginTransitionToOverview for fallback recents as well by
hooking it up to activity start.

Bug: 114136250
Test: Go to recents for fallback recents
Change-Id: I5445bce13ecf7c0dbc2f2b3ff0d8a0aee1449ae1
2019-04-01 12:06:43 -07:00
TreeHugger Robot 7f5083b7af Merge "Making navigation mode listener a singleton so that the change is dispatched everywhere synchronously." into ub-launcher3-master 2019-03-29 18:05:24 +00:00
TreeHugger Robot f74882d988 Merge "Fix TaskView scale being 0" into ub-launcher3-master 2019-03-29 18:05:04 +00:00
TreeHugger Robot 5996842fa3 Merge "Removing unused instant apps methods" into ub-launcher3-master 2019-03-29 17:25:10 +00:00
Tony 85c8c46736 Fix TaskView scale being 0
Before, we reset zoom scale to 1 but didn't reset curve scale. Thus,
if curve scale had never been set (i.e. we hadn't yet scrolled recents),
the task view scale would be 0.

Example problem:
1. Open Calculator or other app
2. Force stop launcher
3. Swipe up
The recents-scale-down animation was incorrect because the computed scale
was 0, and thus recents didn't scale down at all throughout the swipe.

Change-Id: I8dd3c73a231033fa633e8df2df3bf9a1c0a67263
2019-03-29 16:44:52 +00:00
Sunny Goyal 5743f8635b Making navigation mode listener a singleton so that the change is dispatched
everywhere synchronously.

Change-Id: Iee8c5957d78dfad3fb03e814de0367adcaa0c98b
2019-03-29 09:36:45 -07:00
Vadim Tryshev 814b615b62 Merge "Temporarily ignoring flaky test checking mDevice.pressRecentApps()" into ub-launcher3-master 2019-03-29 02:37:00 +00:00
Vadim Tryshev da9236e1ff Merge "Temporarily going home from an app via device.pressHome" into ub-launcher3-master 2019-03-29 02:36:26 +00:00
TreeHugger Robot a978f4d76e Merge "Add clear all animation to Recents Go." into ub-launcher3-master 2019-03-29 02:14:50 +00:00
TreeHugger Robot 7c1d69e515 Merge "Show ASAP for Recents Go and load content after" into ub-launcher3-master 2019-03-29 02:07:01 +00:00
vadimt 9b4671f806 Temporarily ignoring flaky test checking mDevice.pressRecentApps()
Change-Id: I60fba4425e10fca5b06dd72f4d98aedc1b9a578e
2019-03-28 18:41:20 -07:00
Kevin b589241fd6 Show ASAP for Recents Go and load content after
Recent UX discussion led to decision to show as soon as we have the list
and order and then load the content in after as soon as it comes. This
introduces API in TaskListLoader to facilitate this and default values
for the view when the content is not yet loaded.

Bug: 114136250
Test: Go to recents, see content load in
Change-Id: I6766cf014e3de78894353614157dbc8798031c2f
2019-03-28 18:10:52 -07:00
vadimt d1e90a1beb Temporarily going home from an app via device.pressHome
The gesture will be restored once we have a UI automation-stable
gesture detection on the Launcher side.

Change-Id: I94cd52b61cd65961ac471d0e4ae0db1fc766a66b
2019-03-28 17:59:27 -07:00
Vadim Tryshev 09b9144746 Merge "Preparing QuickstepOnOff for running in 3 navigation modes" into ub-launcher3-master 2019-03-28 23:50:25 +00:00
vadimt c5b06f4cf6 Preparing QuickstepOnOff for running in 3 navigation modes
Change-Id: I7855e756c9886a21bfc2584cf42e7921147fb256
2019-03-28 16:02:47 -07:00
Tony Wickham ae775276ac Merge "Add QuickSwitchTouchController on home" into ub-launcher3-master 2019-03-28 21:51:06 +00:00
TreeHugger Robot 7553695e1e Merge "Fix bug where folder icon dot anim plays every time." into ub-launcher3-master 2019-03-28 21:31:20 +00:00
Jon Miranda ae9f62095a Fix bug where folder icon dot anim plays every time.
Change-Id: I6a7e075be62dfcea01c38b2a6a630427e1c5974a
2019-03-28 14:19:43 -07:00
Tony e4c2e2b86c Add QuickSwitchTouchController on home
- Added QuickSwitchState, which we animate to when swiping right
  on the nav bar from NORMAL state
- Task launches when the state transition to QuickSwitchState ends

Bug: 126596417
Change-Id: Id66650401d817703fc6d044fb26a25cccbc07e11
2019-03-28 15:09:25 -05:00
TreeHugger Robot 794a68e998 Merge "Fix SwipeDetector positive vs negative for HORIZONTAL direction" into ub-launcher3-master 2019-03-28 20:07:06 +00:00
Tony Wickham 5d50fd8571 Merge "Recompute folder icon drawing params before computing its position" into ub-launcher3-master 2019-03-28 18:59:40 +00:00
TreeHugger Robot 95dc1fd28a Merge "Move some classes to packages" into ub-launcher3-master 2019-03-28 18:52:07 +00:00
TreeHugger Robot 2f9b438a3a Merge "Adding tracing for Lab-only flake: drag to workspace doesn't happen" into ub-launcher3-master 2019-03-28 18:43:17 +00:00
Tony 5cb5e40855 Recompute folder icon drawing params before computing its position
Otherwise the returned position could be empty, leading to the crash
in the bug (for example).

Bug: 129474866
Change-Id: I0d300d8022b50f83221a84c09a59b597bfa291dc
2019-03-28 12:34:13 -05:00
Tony Wickham bd9bd70dcb Merge "Peek overview on motion pause, then animate fully on touch up" into ub-launcher3-master 2019-03-28 01:02:35 +00:00
Tony 101807d8e7 Fix SwipeDetector positive vs negative for HORIZONTAL direction
Previously left was considered positive and right considered negative.
Now left and down are negative, and right and up are positive.

For RTL, left is positive and right is negative.

Change-Id: Ia31e8c687c8c2716fc632b2fe88aa8955b934bce
2019-03-27 19:45:04 -05:00
Tony e06fef45a4 Move some classes to packages
Added states/ and touchcontrollers/ packages

Change-Id: I8d59c47770c24c9edd1b7ce879e6a80ca8b88c71
2019-03-27 19:45:04 -05:00
Tony 1787ee9596 Peek overview on motion pause, then animate fully on touch up
Add AnimationComponents.ATOMIC_OVERVIEW_PEEK_COMPONENT, and rename
previous ATOMIC_COMPONENT to ATOMIC_OVERVIEW_SCALE_COMPONENT.

When SWIPE_HOME is enabled:
- Overview lives to the left of Workspace, which is encoded in
  LauncherState.NORMAL.getOverviewScaleAndTranslation().
- Create atomic animation based on ATOMIC_OVERVIEW_PEEK_COMPONENT
  and OVERVIEW_PEEK state when swiping and holding from home screen.

Bug: 111926330
Change-Id: Iab6dbef7238dae15b3036d4b2a026b781eee6b4b
2019-03-27 19:45:04 -05:00
vadimt 0b339b5273 Adding tracing for Lab-only flake: drag to workspace doesn't happen
Bug: 129434166
Change-Id: I4433a4848b57da42412a9108a0965ff13c708c39
2019-03-27 17:42:25 -07:00
Vadim Tryshev 59b3ed056c Merge "TAPL: using assert that prints context" into ub-launcher3-master 2019-03-27 23:26:37 +00:00
vadimt cea84574ec TAPL: using assert that prints context
Change-Id: I9545e82f67e51bd07f20f0313d98f5dd65c84d4e
2019-03-27 16:10:30 -07:00
Vadim Tryshev cb15a24cfe Merge "TAPL: Not starting all apps scroll gestures over nav bar" into ub-launcher3-master 2019-03-27 22:56:57 +00:00
Sunny Goyal ee89e5da7d Removing unused instant apps methods
Change-Id: I82bf86a8604cdb64853e7d0d6f4cbca275f5fa7a
2019-03-27 15:39:00 -07:00
vadimt f78f47ddef TAPL: Not starting all apps scroll gestures over nav bar
This is important for zero-button navigation.

Change-Id: Ib281762dbb995e6c89ae55b808343ddb9f4963ae
2019-03-27 15:36:58 -07:00
TreeHugger Robot 8e8c46069c Merge "Fix translationX that should be translationY" into ub-launcher3-master 2019-03-27 22:21:41 +00:00
TreeHugger Robot 38b2748eb2 Merge "Reconcile difference between master and ub-launcher3-master" into ub-launcher3-master 2019-03-27 22:13:09 +00:00
Tony 2ed8936da1 Fix translationX that should be translationY
Change-Id: Ie1dc8b327a312d206050926ea9f5572113727c57
2019-03-27 17:03:00 -05:00
Hyunyoung Song cbf82cc062 Reconcile difference between master and ub-launcher3-master
b/129423457

Change-Id: I63e2a1a6b40ced849e852f1b7bffa4e9fa177f18
2019-03-27 22:02:35 +00:00
Jon Miranda 83fb1b0ed8 Temp remove fade animation.
Bug: 129421279
Change-Id: I7c1a9906ea9dbf888c0f156cc21d10109d92e85d
2019-03-27 14:09:56 -07:00
TreeHugger Robot 75949941b9 Merge changes I5e65dde3,I497c0292 into ub-launcher3-master
* changes:
  Add translationX to overview state
  Add FLAG_DONT_ANIMATE_OVERVIEW to AnimatorSetBuilder
2019-03-27 20:56:58 +00:00
Tony bc23440d73 Add translationX to overview state
States return ScaleAndTranslation instead of float[].

Also separate overview translate interpolator from overview scale interpolator.

Change-Id: I5e65dde3f436055ff5e7f5736f1a4b712377b9cb
2019-03-27 14:36:48 -05:00
Tony 9244f518f2 Add FLAG_DONT_ANIMATE_OVERVIEW to AnimatorSetBuilder
This allows us to specify when a second animation will handle the overview
animation, so it doesn't conflict with existing state transitions.

Bug: 125362112
Change-Id: I497c02924862bfba558c107bee3c88a9f40ec0f1
2019-03-27 14:21:06 -05:00
Vadim Tryshev 60353faa2e Merge "Improving TAPL diags" into ub-launcher3-master 2019-03-27 18:46:08 +00:00
vadimt 64df579446 Improving TAPL diags
Bug: 128531133
Change-Id: Iba33011b5cb315731b5104005ef5773e539a21ea
2019-03-27 11:06:10 -07:00
Jonathan Miranda d8b9264a1a Merge "Fix sizing of FloatingIconView so that it matches the workspace." into ub-launcher3-master 2019-03-27 17:17:16 +00:00
Jon Miranda 6f455b583f Fix sizing of FloatingIconView so that it matches the workspace.
* Added a cross fade at the end for text and shadows.
* Animate in FolderIcon bg/dot/text after swapping.

Bug: 129297366
Change-Id: Ieeb5d7b8fb389a2f7ee263d38b3021ffdefefd93
2019-03-27 09:42:50 -07:00
TreeHugger Robot f86a776602 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2019-03-27 07:31:51 +00:00
Bill Yi 3092a21532 Import translations. DO NOT MERGE
Change-Id: I3bfe6c1b97612ecc829e361fc70d98b9318da417
Auto-generated-cl: translation import
2019-03-26 22:14:07 -07:00
Winson Chung e5af8f390a Merge changes from topics "launcher_nav_changes", "nav-bar-mode-fw-overlay-ub-launcher3-master" into ub-launcher3-master
* changes:
  Use system recent tasks stabilization
  Use own context instead of app context to get overlay resources
  Updating to nav bar mode
2019-03-27 02:50:38 +00:00
vadimt 522cc2ff0c Adding diags for TAPL flakes that don't reproduce locally
Also temporarily disabling more flaky BindWidgetTests

Change-Id: Ib0d3c54c560ddb49b7964e85bf9cd6ebc567b6d7
2019-03-26 18:21:36 -07:00