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:
Adam Cohen
2011-10-17 21:48:02 -07:00
parent 7fe4f8ba0a
commit b64d36e6f8
4 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -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));