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

Commit b0ec2658 authored by Rajeev Kumar's avatar Rajeev Kumar
Browse files

Recycle TypedArray in SpacePreference.

Test: make RunSettingsRoboTests -j40
Change-Id: I8767ceb70adabffc4d6db020ef0e1524f64a1d05
parent 82ee7cf1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ import android.support.v7.preference.Preference;
import android.support.v7.preference.PreferenceViewHolder;
import android.util.AttributeSet;
import android.view.ViewGroup.LayoutParams;

import com.android.settings.R;

/**
@@ -50,6 +49,7 @@ public class SpacePreference extends Preference {
        final TypedArray a = context.obtainStyledAttributes(attrs,
                new int[] { com.android.internal.R.attr.layout_height }, defStyleAttr, defStyleRes);
        mHeight = a.getDimensionPixelSize(0, 0);
        a.recycle();
    }

    public void setHeight(int height) {