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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user