Merge changes from topic "state-supplier" into ub-launcher3-master

* changes:
  Translate recents slightly while dragging after pausing
  Two-zone model: swipe up from nav bar vs above it
  Change LauncherState to Supplier<LauncherState> in tests
This commit is contained in:
TreeHugger Robot
2020-01-29 03:06:04 +00:00
committed by Android (Google) Code Review
28 changed files with 513 additions and 110 deletions

View File

@@ -3255,7 +3255,8 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
return mOverlayShown;
}
void moveToDefaultScreen() {
/** Calls {@link #snapToPage(int)} on the {@link #DEFAULT_PAGE}, then requests focus on it. */
public void moveToDefaultScreen() {
int page = DEFAULT_PAGE;
if (!workspaceInModalState() && getNextPage() != page) {
snapToPage(page);