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

Commit 5108edc1 authored by Michael W's avatar Michael W Committed by Michael Bestas
Browse files

LineageParts: Add missing recycle() calls

* Typed arrays should be recycled after use

Change-Id: If70786cc22cd2522dcda827ba40276fa966e92c9
parent 1cc1fd46
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ public class DividerPreference extends Preference {
        if (a.hasValue(R.styleable.DividerPreference_allowDividerBelow)) {
            mAllowBelow = a.getBoolean(R.styleable.DividerPreference_allowDividerBelow, false);
        }
        a.recycle();
    }

    public DividerPreference(Context context) {
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ public class LayoutPreference extends Preference {
        if (layoutResource == 0) {
            throw new IllegalArgumentException("LayoutPreference requires a layout to be defined");
        }
        a.recycle();
        // Need to create view now so that findViewById can be called immediately.
        final View view = LayoutInflater.from(getContext())
                .inflate(layoutResource, null, false);