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

Commit be93dccc authored by Nikolas Havrikov's avatar Nikolas Havrikov
Browse files

Recycle obtained TypedArrays

Bug: 218835043
Test: make
Change-Id: Ibbd29e36e8d830fcd2794997ef4bc8b3b34179ac
parent b0385bd9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ public class RestrictedSwitchPreference extends SwitchPreference {

            final TypedValue restrictedSwitchSummary = attributes.peekValue(
                    R.styleable.RestrictedSwitchPreference_restrictedSwitchSummary);
            attributes.recycle();
            if (restrictedSwitchSummary != null
                    && restrictedSwitchSummary.type == TypedValue.TYPE_STRING) {
                if (restrictedSwitchSummary.resourceId != 0) {