OSDN Git Service

Fixed Android animation framework, for using interpolators that do not start at 0.0f
authorAndreas Agvard <andreas.agvard@sonyericsson.com>
Fri, 5 Feb 2010 07:16:01 +0000 (08:16 +0100)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Fri, 5 Feb 2010 07:16:01 +0000 (08:16 +0100)
commit4766defdd0778d7e0a656179d03a4865a9a40523
tree5f9e923488c783fc8a293c488f1560077bb2475d
parent8ab11f87acf01b830ad0db46ec549406b33c39de
Fixed Android animation framework, for using interpolators that do not start at 0.0f

There is a bug that affects interpolators that do not return 0.0f when given 0.0f as input. All default interpolators in Android do return 0.0f, which is why it hasn't been
noticed. Some custom interpolators can for example run backwards, returning 1.0f when given input 0.0f.
core/java/android/view/animation/Animation.java
core/java/android/view/animation/AnimationSet.java