From aa358194f015e282e9c0962e49fe6752efc4f9c0 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Tue, 12 May 2015 16:44:59 -0700 Subject: [PATCH] AnimatedRotateDrawable should inflate child elements This was missed during the update that extended from DrawableWrapper. Bug: 20089503 Change-Id: Ie84c040deaecb415e882842f2172a344afa8df7b --- .../java/android/graphics/drawable/AnimatedRotateDrawable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics/java/android/graphics/drawable/AnimatedRotateDrawable.java b/graphics/java/android/graphics/drawable/AnimatedRotateDrawable.java index 24e0d6a2707b5..4fc5edee94c68 100644 --- a/graphics/java/android/graphics/drawable/AnimatedRotateDrawable.java +++ b/graphics/java/android/graphics/drawable/AnimatedRotateDrawable.java @@ -127,7 +127,9 @@ public class AnimatedRotateDrawable extends DrawableWrapper implements Animatabl throws XmlPullParserException, IOException { final TypedArray a = obtainAttributes(r, theme, attrs, R.styleable.AnimatedRotateDrawable); super.inflateWithAttributes(r, parser, a, R.styleable.AnimatedRotateDrawable_visible); + updateStateFromTypedArray(a); + inflateChildDrawable(r, parser, attrs, theme); verifyRequiredAttributes(a); a.recycle();