Merge changes I0b96f623,I019084a1 into ub-launcher3-qt-dev

* changes:
  Fix double swipe on nav bar from an app
  Fix state/anim clobbering when touching down during recents animation
This commit is contained in:
Tony Wickham
2019-06-12 17:50:16 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 4 deletions
@@ -619,7 +619,7 @@ public class TouchInteractionService extends Service implements
return InputConsumer.NO_OP;
}
if (activity.getRootView().hasWindowFocus()) {
if (activity.getRootView().hasWindowFocus() || mSwipeSharedState.goingToLauncher) {
return new OverviewInputConsumer(activity, mInputMonitorCompat,
false /* startingInActivityBounds */);
} else {
@@ -868,9 +868,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity>
@UiThread
private InputConsumer createNewInputProxyHandler() {
endRunningWindowAnim();
if (mLauncherTransitionController != null) {
mLauncherTransitionController.getAnimationPlayer().end();
}
endLauncherTransitionController();
if (!ENABLE_QUICKSTEP_LIVE_TILE.get()) {
// Hide the task view, if not already hidden
setTargetAlphaProvider(WindowTransformSwipeHandler::getHiddenTargetAlpha);
@@ -1312,6 +1310,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity>
}
private void endLauncherTransitionController() {
setShelfState(ShelfAnimState.CANCEL, LINEAR, 0);
if (mLauncherTransitionController != null) {
mLauncherTransitionController.getAnimationPlayer().end();
mLauncherTransitionController = null;