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
This commit is contained in:
Chet Haase
2013-03-15 14:33:24 -07:00
parent 36818c414d
commit d9e4a5c2e5

View File

@@ -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);