Merge "Fixing allSet page not closed if recentsAnimation takes time to start" into sc-v2-dev
This commit is contained in:
commit
ef18f8c5a2
|
@ -153,10 +153,8 @@ public class ProgressDelegateInputConsumer implements InputConsumer,
|
|||
|
||||
ObjectAnimator anim = mProgress.animateToValue(endValue);
|
||||
anim.setDuration(duration).setInterpolator(scrollInterpolatorForVelocity(velocity));
|
||||
if (mRecentsAnimationController != null) {
|
||||
anim.addListener(AnimatorListeners.forSuccessCallback(
|
||||
() -> mStateCallback.setState(STATE_FLING_FINISHED)));
|
||||
}
|
||||
anim.addListener(AnimatorListeners.forSuccessCallback(
|
||||
() -> mStateCallback.setState(STATE_FLING_FINISHED)));
|
||||
anim.start();
|
||||
}
|
||||
|
||||
|
|
|
@ -136,6 +136,9 @@ public class AllSetActivity extends Activity {
|
|||
protected void onPause() {
|
||||
super.onPause();
|
||||
clearBinderOverride();
|
||||
if (mSwipeProgress.value >= 1) {
|
||||
finishAndRemoveTask();
|
||||
}
|
||||
}
|
||||
|
||||
private void clearBinderOverride() {
|
||||
|
|
Loading…
Reference in New Issue