mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Revert "Update timings for the Home <> All Apps transition."
Revert submission 20641089-b/254835725 Reason for revert: b/263221786 Reverted changes: /q/submissionid:20641089-b/254835725 Change-Id: I6aa0955b4ac7ed47ea254514b364b0ab94b632bf
This commit is contained in:
committed by
Android (Google) Code Review
parent
43e3d45042
commit
e18ac479e5
@@ -32,6 +32,7 @@ import static com.android.launcher3.util.window.RefreshRateTracker.getSingleFram
|
||||
|
||||
import android.animation.Animator.AnimatorListener;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
|
||||
import com.android.launcher3.Launcher;
|
||||
@@ -291,18 +292,11 @@ public abstract class AbstractStateChangeTouchController
|
||||
? mToState : mFromState;
|
||||
// snap to top or bottom using the release velocity
|
||||
} else {
|
||||
float successTransitionProgress = SUCCESS_TRANSITION_PROGRESS;
|
||||
if (mLauncher.getDeviceProfile().isTablet
|
||||
&& (mToState == ALL_APPS || mFromState == ALL_APPS)) {
|
||||
successTransitionProgress = TABLET_BOTTOM_SHEET_SUCCESS_TRANSITION_PROGRESS;
|
||||
} else if (!mLauncher.getDeviceProfile().isTablet
|
||||
&& mToState == ALL_APPS && mFromState == NORMAL) {
|
||||
successTransitionProgress = AllAppsSwipeController.ALL_APPS_STATE_TRANSITION_MANUAL;
|
||||
} else if (!mLauncher.getDeviceProfile().isTablet
|
||||
&& mToState == NORMAL && mFromState == ALL_APPS) {
|
||||
successTransitionProgress =
|
||||
1 - AllAppsSwipeController.ALL_APPS_STATE_TRANSITION_MANUAL;
|
||||
}
|
||||
float successTransitionProgress =
|
||||
mLauncher.getDeviceProfile().isTablet
|
||||
&& (mToState == ALL_APPS || mFromState == ALL_APPS)
|
||||
? TABLET_BOTTOM_SHEET_SUCCESS_TRANSITION_PROGRESS
|
||||
: SUCCESS_TRANSITION_PROGRESS;
|
||||
targetState =
|
||||
(interpolatedProgress > successTransitionProgress) ? mToState : mFromState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user