mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Tune discovery bounce to be more gentle when bouncing.
Change-Id: I6b1c094bbcd07bfda76bcc2c6b2a6fb249acd377 Fixes: 79491740 Test: Manual test
This commit is contained in:
@@ -156,14 +156,14 @@ public class DiscoveryBounce extends AbstractFloatingView {
|
||||
float verticalProgress = OVERVIEW.getVerticalProgress(launcher);
|
||||
|
||||
TimeInterpolator pathInterpolator = new PathInterpolator(0.35f, 0, 0.5f, 1);
|
||||
Keyframe keyframe3 = Keyframe.ofFloat(0.423f, verticalProgress - (1 - 0.9438f));
|
||||
Keyframe keyframe3 = Keyframe.ofFloat(0.423f, verticalProgress - (1 - 0.9738f));
|
||||
keyframe3.setInterpolator(pathInterpolator);
|
||||
Keyframe keyframe4 = Keyframe.ofFloat(0.654f, verticalProgress);
|
||||
Keyframe keyframe4 = Keyframe.ofFloat(0.754f, verticalProgress);
|
||||
keyframe4.setInterpolator(pathInterpolator);
|
||||
|
||||
PropertyValuesHolder propertyValuesHolder = PropertyValuesHolder.ofKeyframe("progress",
|
||||
Keyframe.ofFloat(0, verticalProgress),
|
||||
Keyframe.ofFloat(0.346f, verticalProgress), keyframe3, keyframe4,
|
||||
Keyframe.ofFloat(0.246f, verticalProgress), keyframe3, keyframe4,
|
||||
Keyframe.ofFloat(1f, verticalProgress));
|
||||
ObjectAnimator animator = ObjectAnimator.ofPropertyValuesHolder(null,
|
||||
new PropertyValuesHolder[]{propertyValuesHolder});
|
||||
|
||||
Reference in New Issue
Block a user