Merge "Fixing typo in swipe helper causing views not to be faded when swiped." into oc-mr1-dev am: 35ebb3c535

am: e1cd325bca

Change-Id: I41d36d3861edb28476ec7123d1ccb3adce3c49e7
This commit is contained in:
Winson Chung
2017-08-11 22:34:34 +00:00
committed by android-build-merger

View File

@@ -203,7 +203,7 @@ public class SwipeHelper implements Gefingerpoken {
return Math.max(1 - progress, 0);
}
return Math.min(0, Math.max(1, progress / SWIPE_PROGRESS_FADE_END));
return 1f - Math.max(0, Math.min(1, progress / SWIPE_PROGRESS_FADE_END));
}
private void updateSwipeProgressFromOffset(View animView, boolean dismissable) {