Commit Graph

18332 Commits

Author SHA1 Message Date
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
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 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
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
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
TreeHugger Robot 77dbcb50dd Merge "Adding a utility class to listen for app launches" into ub-launcher3-master 2019-03-27 00:33:41 +00:00
Winson Chung a5354e02a2 Use system recent tasks stabilization
Bug: 111926330
Test: Swipe to last task, ensure it resets task list on timeout or interaction

Change-Id: Id09215a4cfdea63a4be6fb69fced163ad3bc10bd
2019-03-26 16:56:04 -07:00
Sunny Goyal 369212aed9 Adding a utility class to listen for app launches
Change-Id: I62e82a6e04b7101773d98c6e7aec574facd053fe
2019-03-26 16:38:58 -07:00
TreeHugger Robot 916a4a51de Merge "Removing some redundant resource definitions" into ub-launcher3-master 2019-03-26 23:34:36 +00:00
Winson Chung 14b2f9dd57 Use own context instead of app context to get overlay resources
Bug: 129270535
Test: adb shell am instrument -w -r -e package android.platform.test.scenario.launcher android.platform.test.scenario/androidx.test.runner.AndroidJUnitRunner
Change-Id: Iff2921cafcdb933566b5eb76670facc844bc7fd9
(cherry picked from commit 15179c0674)
2019-03-26 14:54:35 -07:00
Winson Chung f25461c337 Updating to nav bar mode
Bug: 127366543
Test: Manual
Change-Id: I602539e5d6161c5bf6056bb60679b7ef1f168e3e
(cherry picked from commit 18841823ed)
2019-03-26 14:52:10 -07:00
vadimt 4397d8d5ea Improving TAPL diagnostics
Bug: 128531133
Change-Id: If81861afccb665e2dc2293f2704d99818b3297c8
2019-03-25 18:29:37 -07:00
Vadim Tryshev 6d862386fb Slowing down some gestures for testing on virtual devices
Change-Id: Ie8b9a4eff3e9b4c133719a6292d2d251b87b90e8
2019-03-25 15:45:47 -07:00
Bill Yi 56635d4f85 Import translations. DO NOT MERGE
Change-Id: Ibed07a95d0eb703afc04a19e9c0018944ffaf9f7
Auto-generated-cl: translation import
2019-03-23 08:05:19 -07:00
Sunny Goyal 58fa4b66ea Removing some redundant resource definitions
Change-Id: I68ae602116e6eb334dfce2a013fcc42068c464bf
2019-03-22 16:24:16 -07:00
Hyunyoung Song c885f9a1f3 Merge "Move plugin_core.jar back to Launcher3 to unblock code merge" into ub-launcher3-master 2019-03-22 22:42:19 +00:00
TreeHugger Robot b0058e12e9 Merge "Add overview button handling to Go recents." into ub-launcher3-master 2019-03-22 22:12:50 +00:00
Hyunyoung Song 40bea55b75 Move plugin_core.jar back to Launcher3 to unblock code merge
Change-Id: Ic9d6ab16ac7a8c5c1f528bdcac06e56f718a3f91
2019-03-22 14:45:56 -07:00
TreeHugger Robot c8d33f8b61 Merge "Removing graying apps in Overview" into ub-launcher3-master 2019-03-22 21:38:30 +00:00
Vadim Tryshev a06c880bdf Merge "TAPL: increasing FLINGS_FOR_DISMISS_LIMIT" into ub-launcher3-master 2019-03-22 20:18:33 +00:00
Kevin c977ea9a3c Add overview button handling to Go recents.
Add the same overview button handling as in the original launcher.
Specifically, pressing overview on recents will launch the next
appropriate task (e.g. the next most recent task if you came from an
app).

Bug: 114136250
Test: Go to recents from launcher, press overview => launch task.
Test: Go to recents from app, press overview => launches next task
Change-Id: I946974b4c2b65b6d0f212d8e8c0816983386d952
2019-03-22 12:53:02 -07:00
vadimt bae58982bb TAPL: increasing FLINGS_FOR_DISMISS_LIMIT
Bug: 129113713
Change-Id: I294f3f3b7c9397992927a5a31972ad755472910c
2019-03-22 12:27:17 -07:00
vadimt 0ed1797fad Removing graying apps in Overview
The reason is that there is no API that reports that an app is grayed.
Not showing DWB toast for apps that ran over their limit because they
shouldn't be in Overview.

Bug: 129067053
Change-Id: Ia04e17aa85ca015b7932496ad5e730fe61b4be69
2019-03-22 12:17:48 -07:00
Kevin 969e7a6c57 Rename task input controller.
The TaskInputController class doesn't need to be tightly coupled with
the actual input method, so we should rename it and the methods to
correspond to the actual logic. For example, both tapping a task and
pressing the overview button on recents should launch a task and should
both use this logic.

Bug: 114136250
Test: Launch tasks, clear tasks, clear all
Change-Id: If4f7f1d6ee9b05ffaf65cb13df633679cc8efcbe
2019-03-21 18:00:44 -07:00
TreeHugger Robot 1bfb0c1c51 Merge "Add clear all button to Recents Go" into ub-launcher3-master 2019-03-21 22:36:23 +00:00
TreeHugger Robot 9cb820f63b Merge "Reconcile difference btw master and ub-launcher3-master" into ub-launcher3-master 2019-03-21 22:10:57 +00:00
Kevin fefe8b6d0e Add clear all button to Recents Go
Add a button to clear all tasks to the recents Go layout and hook it up
to the model.

Bug: 114136250
Test: Open recents, hit clear all
Change-Id: Id67310ce88053528d372e4dc21e2b011ed957646
2019-03-21 15:04:21 -07:00
Hyunyoung Song 896a715a1c Reconcile difference btw master and ub-launcher3-master
Change-Id: I33dcd6a062b754edbe2da9c7fcf2a8ccfb41b661
2019-03-21 14:06:02 -07:00
Vadim Tryshev 156775e053 Merge "Initial implementation for TAPL support for gestural navigation" into ub-launcher3-master 2019-03-21 19:46:13 +00:00
vadimt 8bba01874a Initial implementation for TAPL support for gestural navigation
It cuts some corners, flaky and has magic constants, which will be
addressed later.

Change-Id: I0acc75338a3c6d0ead3afda01e25ba43eb095913
2019-03-21 12:01:23 -07:00
Tracy Zhou e790b217e1 Properly clean up screenshot of recents animation upon cancelation
Bug: 122593881
Test: Manual
Change-Id: Ia9ce1ede08309a0898c622bcd07a9e076443d98a
(cherry picked from commit 2bd3a0225b)
2019-03-21 18:06:36 +00:00
TreeHugger Robot 16675c566a Merge "Hide keyboard while the home button get pressed" into ub-launcher3-master 2019-03-21 02:17:49 +00:00