OSDN Git Service

Use finger velocity for ExpandHelper
authorJorim Jaggi <jjaggi@google.com>
Sat, 26 Jul 2014 10:36:35 +0000 (12:36 +0200)
committerJorim Jaggi <jjaggi@google.com>
Sat, 26 Jul 2014 17:16:39 +0000 (17:16 +0000)
commit28c0b714ac7f6c98d63aab106447bfd1e727fae2
tree9d6934aa6e51699a224580ad3e3a3bc749d68de6
parentf0f0f7ca66e15c5cebfbcf38a8d1e576b3e6e335
Use finger velocity for ExpandHelper

Makes sure that the animation continuing the expand has the exact
same velocity as the finger started the expand. At the end of the
animation, the velocity slows nicely down (reusing logic from
FlingAnimationUtils, yay!).

Change-Id: If9a286a1a3d1bde649cf0475367a63a2188ca3c0
packages/SystemUI/src/com/android/systemui/ExpandHelper.java