Fixing allSet page not closed if recentsAnimation takes time to start

> Also finishing the activity so that it doesn't show in home settings backstack

Bug: 204541138
Test: Manual
Change-Id: I7deec0d1ef7eec0464a0f21bf30b25cd5e18d02d
This commit is contained in:
Sunny Goyal 2021-11-05 13:04:30 -07:00
parent d71a4288cf
commit beefd1890c
2 changed files with 5 additions and 4 deletions

View File

@ -151,10 +151,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();
}

View File

@ -136,6 +136,9 @@ public class AllSetActivity extends Activity {
protected void onPause() {
super.onPause();
clearBinderOverride();
if (mSwipeProgress.value >= 1) {
finishAndRemoveTask();
}
}
private void clearBinderOverride() {