Update predictive back progress interpolator
Bug: 332512902 Flag: ACONFIG com.android.systemui.predictive_back_sysui TRUNKFOOD Test: Manual, i.e. analysing screenrecordings and verify that there are no more animation jumps at the start/end of the back animations Change-Id: I99b13199032f7098fedb1cbd02cfe478d6fbb1f7
This commit is contained in:
1 parent
60d4e8d3b8
commit
75dd62fd22
2 files changed
+2
-4
No files matched your search
@@ -288,8 +288,7 @@ public abstract class AbstractSlideInView<T extends Context & ActivityContext>
|
||||
@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
|
||||
public void onBackProgressed(BackEvent backEvent) {
|
||||
final float progress = backEvent.getProgress();
|
||||
float deceleratedProgress =
|
||||
Interpolators.PREDICTIVE_BACK_DECELERATED_EASE.getInterpolation(progress);
|
||||
float deceleratedProgress = Interpolators.BACK_GESTURE.getInterpolation(progress);
|
||||
mSwipeToDismissProgress.updateValue(deceleratedProgress);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user