am c9ec035b: am 2622629f: am 9033d798: Fix Scroller interpolation

* commit 'c9ec035b9291055db6fc6def5b1310274d192c2b':
  Fix Scroller interpolation
This commit is contained in:
Chet Haase
2014-08-06 23:01:26 +00:00
committed by Android Git Automerger

View File

@@ -589,10 +589,10 @@ public class Scroller {
@Override
public float getInterpolation(float input) {
final float interpolated = VISCOUS_FLUID_NORMALIZE * viscousFluid(input);
if (input > 0) {
return input + VISCOUS_FLUID_OFFSET;
if (interpolated > 0) {
return interpolated + VISCOUS_FLUID_OFFSET;
}
return input;
return interpolated;
}
}
}