Fixing stutter in AllApps transition
-> Tightened up the interpolator and decreased the duration of the AllApps-in animation. This removes many excess frames at the end of the transition, and frees up perf for swiping AllApps: (issue 5359751) -> Changed when AllApps state gets reset -- now only after leaving home, and then pressing home, or when the screen turns off. Change-Id: I76e988102da91c12cb52af01468cf9a81fe45545
This commit is contained in:
@@ -1421,8 +1421,8 @@ public class Workspace extends SmoothPagedView
|
||||
* ZInterpolator compounded with an ease-out.
|
||||
*/
|
||||
static class ZoomOutInterpolator implements TimeInterpolator {
|
||||
private final ZInterpolator zInterpolator = new ZInterpolator(0.2f);
|
||||
private final DecelerateInterpolator decelerate = new DecelerateInterpolator(1.8f);
|
||||
private final DecelerateInterpolator decelerate = new DecelerateInterpolator(0.75f);
|
||||
private final ZInterpolator zInterpolator = new ZInterpolator(0.13f);
|
||||
|
||||
public float getInterpolation(float input) {
|
||||
return decelerate.getInterpolation(zInterpolator.getInterpolation(input));
|
||||
|
||||
Reference in New Issue
Block a user