Merge "Fix behavior of inflating InsetDrawable" into lmp-dev

This commit is contained in:
Chet Haase
2014-09-03 14:55:28 +00:00
committed by Android (Google) Code Review

View File

@@ -86,6 +86,8 @@ public class InsetDrawable extends Drawable implements Drawable.Callback {
throws XmlPullParserException, IOException {
final TypedArray a = r.obtainAttributes(attrs, R.styleable.InsetDrawable);
super.inflateWithAttributes(r, parser, a, R.styleable.InsetDrawable_visible);
mInsetState.mDrawable = null;
updateStateFromTypedArray(a);
// Load inner XML elements.