Updating the swipe-to-dismiss animation

Swipe to dismiss animates the page translation so that the
final position at the endof swipe is same as the final position
on removing the task view.

Change-Id: I393acd5ae75cd94797bb4f1aa3dd3ec9017cbb47
This commit is contained in:
Sunny Goyal
2018-03-13 16:44:00 -07:00
parent f633ef5f43
commit 20a13ff54e
6 changed files with 231 additions and 104 deletions

View File

@@ -57,10 +57,7 @@ public class RecentsViewStateController implements StateHandler {
setVisibility(state.overviewUi);
setTransitionProgress(state.overviewUi ? 1 : 0);
if (state.overviewUi) {
for (int i = 0; i < mRecentsView.getPageCount(); i++) {
((TaskView) mRecentsView.getPageAt(i)).resetVisualProperties();
}
mRecentsView.updateCurveProperties();
mRecentsView.resetTaskVisuals();
}
}