diff options
| author | Jeff Brown <jeffbrown@google.com> | 2012-08-15 02:05:18 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2012-08-15 02:09:05 -0700 |
| commit | ff7e6ef4f18ff94a9836492ff3ccd1ba7f6804f3 (patch) | |
| tree | 53bfb8f41e2fd99b0419e336fa36254f9df9f8f3 /core/java | |
| parent | 109025d778c12d78f8585920447320aaf0f1d2f8 (diff) | |
| download | frameworks_base-ff7e6ef4f18ff94a9836492ff3ccd1ba7f6804f3.zip frameworks_base-ff7e6ef4f18ff94a9836492ff3ccd1ba7f6804f3.tar.gz frameworks_base-ff7e6ef4f18ff94a9836492ff3ccd1ba7f6804f3.tar.bz2 | |
Apply ValueAnimator scale factor immediately in WM.
Normally the ValueAnimator scale factor is applied the first
time a ViewRootImpl window session is created but that may
be too late for animators created by system services that
start early in the boot process. So set the scale factor
immediately whenever the setting changes.
Also make ValueAnimator.getDurationScale() accessible (but @hide)
for custom animators that want to apply the same scale to
their animations.
Change-Id: I0f5a750ab5b014f63848445435d8dca86f2a7ada
Diffstat (limited to 'core/java')
| -rwxr-xr-x | core/java/android/animation/ValueAnimator.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/animation/ValueAnimator.java b/core/java/android/animation/ValueAnimator.java index f3a442a..107e980 100755 --- a/core/java/android/animation/ValueAnimator.java +++ b/core/java/android/animation/ValueAnimator.java @@ -232,6 +232,13 @@ public class ValueAnimator extends Animator { } /** + * @hide + */ + public static float getDurationScale() { + return sDurationScale; + } + + /** * Creates a new ValueAnimator object. This default constructor is primarily for * use internally; the factory methods which take parameters are more generally * useful. |
