Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fae34458 authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Start saving attribute data for ViewAnimator.

Bug: 137892645
Test: atest CtsWidgetTestCases:WidgetAttributeTest
Change-Id: I9e9696b8d5c6bdb6508cca2f08f0607b99ae9803
parent d387b1b2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -57,6 +57,9 @@ public class ViewAnimator extends FrameLayout {
        super(context, attrs);

        TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.ViewAnimator);
        saveAttributeDataForStyleable(context, com.android.internal.R.styleable.ViewAnimator,
                attrs, a, 0, 0);

        int resource = a.getResourceId(com.android.internal.R.styleable.ViewAnimator_inAnimation, 0);
        if (resource > 0) {
            setInAnimation(context, resource);
@@ -90,6 +93,8 @@ public class ViewAnimator extends FrameLayout {
        // attribute to override.
        final TypedArray a = context.obtainStyledAttributes(attrs,
                com.android.internal.R.styleable.FrameLayout);
        saveAttributeDataForStyleable(context, com.android.internal.R.styleable.FrameLayout,
                attrs, a, 0, 0);
        final boolean measureAllChildren = a.getBoolean(
                com.android.internal.R.styleable.FrameLayout_measureAllChildren, true);
        setMeasureAllChildren(measureAllChildren);