Loading quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java +4 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,7 @@ public class NoButtonQuickSwitchTouchController implements TouchController, mRecentsView.setFullscreenProgress(fromState.getOverviewFullscreenProgress()); mLauncher.getActionsView().getVisibilityAlpha().setValue( (fromState.getVisibleElements(mLauncher) & OVERVIEW_ACTIONS) != 0 ? 1f : 0f); mRecentsView.setTaskIconScaledDown(true); float[] scaleAndOffset = toState.getOverviewScaleAndOffset(mLauncher); // As we drag right, animate the following properties: Loading Loading @@ -321,6 +322,7 @@ public class NoButtonQuickSwitchTouchController implements TouchController, boolean verticalFling = mSwipeDetector.isFling(velocity.y); boolean noFling = !horizontalFling && !verticalFling; if (mMotionPauseDetector.isPaused() && noFling) { // Going to Overview. cancelAnimations(); StateAnimationConfig config = new StateAnimationConfig(); Loading @@ -331,6 +333,8 @@ public class NoButtonQuickSwitchTouchController implements TouchController, @Override public void onAnimationEnd(Animator animation) { onAnimationToStateCompleted(OVERVIEW); // Animate the icon after onAnimationToStateCompleted() so it doesn't clobber. mRecentsView.animateUpTaskIconScale(); } }); overviewAnim.start(); Loading Loading
quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonQuickSwitchTouchController.java +4 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,7 @@ public class NoButtonQuickSwitchTouchController implements TouchController, mRecentsView.setFullscreenProgress(fromState.getOverviewFullscreenProgress()); mLauncher.getActionsView().getVisibilityAlpha().setValue( (fromState.getVisibleElements(mLauncher) & OVERVIEW_ACTIONS) != 0 ? 1f : 0f); mRecentsView.setTaskIconScaledDown(true); float[] scaleAndOffset = toState.getOverviewScaleAndOffset(mLauncher); // As we drag right, animate the following properties: Loading Loading @@ -321,6 +322,7 @@ public class NoButtonQuickSwitchTouchController implements TouchController, boolean verticalFling = mSwipeDetector.isFling(velocity.y); boolean noFling = !horizontalFling && !verticalFling; if (mMotionPauseDetector.isPaused() && noFling) { // Going to Overview. cancelAnimations(); StateAnimationConfig config = new StateAnimationConfig(); Loading @@ -331,6 +333,8 @@ public class NoButtonQuickSwitchTouchController implements TouchController, @Override public void onAnimationEnd(Animator animation) { onAnimationToStateCompleted(OVERVIEW); // Animate the icon after onAnimationToStateCompleted() so it doesn't clobber. mRecentsView.animateUpTaskIconScale(); } }); overviewAnim.start(); Loading