Use the proper style for the SpacePreference.

The old style caused unsightly dividers to show up.

Change-Id: Ic59fdc9b2f120e8a637930f3246be5dab547af5b
Fixes: 62548473
Test: Manual
This commit is contained in:
Daniel Nishi
2017-06-27 14:28:21 -07:00
parent a2dd9978d4
commit d8dce76a1a

View File

@@ -17,6 +17,7 @@ package com.android.settings.applications;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.v4.content.res.TypedArrayUtils;
import android.support.v7.preference.Preference;
import android.support.v7.preference.PreferenceViewHolder;
import android.util.AttributeSet;
@@ -33,7 +34,9 @@ public class SpacePreference extends Preference {
private int mHeight;
public SpacePreference(Context context, AttributeSet attrs) {
this(context, attrs, com.android.internal.R.attr.preferenceStyle);
this(context, attrs, TypedArrayUtils.getAttr(context,
android.support.v7.preference.R.attr.preferenceStyle,
android.R.attr.preferenceStyle));
}
public SpacePreference(Context context, AttributeSet attrs, int defStyleAttr) {