From d9e4a5c2e55883d4eab766d4ab6aee408cb260a0 Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Fri, 15 Mar 2013 14:33:24 -0700 Subject: [PATCH] Use same default duration (300) for animator resources as for other animators Issue #7492926 Animator resources should use same default duration as code-created Animators Change-Id: I337a2c37ff26ebb6cb8b2fb2b58523c464af518b --- core/java/android/animation/AnimatorInflater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/animation/AnimatorInflater.java b/core/java/android/animation/AnimatorInflater.java index ed4036db7ff2d..d753e322cf19c 100644 --- a/core/java/android/animation/AnimatorInflater.java +++ b/core/java/android/animation/AnimatorInflater.java @@ -185,7 +185,7 @@ public class AnimatorInflater { TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.Animator); - long duration = a.getInt(com.android.internal.R.styleable.Animator_duration, 0); + long duration = a.getInt(com.android.internal.R.styleable.Animator_duration, 300); long startDelay = a.getInt(com.android.internal.R.styleable.Animator_startOffset, 0);