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

Commit 82bbdfec authored by Rajeev Kumar's avatar Rajeev Kumar Committed by Android (Google) Code Review
Browse files

Merge "Recycle TypedArray in SpacePreference."

parents 6f89fc05 b0ec2658
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) {