Merge "Move swipe actions on container logging to west world." into ub-launcher3-qt-qpr1-dev

am: 6d0d8969f6

Change-Id: I2229ea7c878ac84b00110235df65ced2f9baf171
This commit is contained in:
Becky Qiu
2019-08-23 20:01:05 -07:00
committed by android-build-merger
3 changed files with 26 additions and 7 deletions

View File

@@ -1053,6 +1053,7 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
if (!mOverlayShown) {
mLauncher.getUserEventDispatcher().logActionOnContainer(Action.Touch.SWIPE,
Action.Direction.LEFT, ContainerType.WORKSPACE, 0);
mLauncher.getStatsLogManager().logSwipeOnContainer(true, 0);
}
mOverlayShown = true;
// Not announcing the overlay page for accessibility since it announces itself.
@@ -1062,6 +1063,7 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
if (!ued.isPreviousHomeGesture()) {
mLauncher.getUserEventDispatcher().logActionOnContainer(Action.Touch.SWIPE,
Action.Direction.RIGHT, ContainerType.WORKSPACE, -1);
mLauncher.getStatsLogManager().logSwipeOnContainer(false, -1);
}
} else if (Float.compare(mOverlayTranslation, 0f) != 0) {
// When arriving to 0 overscroll from non-zero overscroll, announce page for