Updated Nexus imprint screen
The fingerprint settings screen looked ugly so an
icon was added and the styles used in the
preferences normalized so everything lines up
and is flush now.
Test: Visually Inspect
Bug: 27834731
Change-Id: I208d7fc2aecbe64d3a0b771fc73f49c9612f6efa
(cherry picked from commit 3d2d5e040a
)
This commit is contained in:
@@ -357,6 +357,7 @@ public class FingerprintSettings extends SubSettings {
|
||||
pref.setTitle(item.getName());
|
||||
pref.setFingerprint(item);
|
||||
pref.setPersistent(false);
|
||||
pref.setIcon(R.drawable.ic_fingerprint_24dp);
|
||||
root.addPreference(pref);
|
||||
pref.setOnPreferenceChangeListener(this);
|
||||
}
|
||||
@@ -717,15 +718,15 @@ public class FingerprintSettings extends SubSettings {
|
||||
super(context, attrs, defStyleAttr, defStyleRes);
|
||||
}
|
||||
public FingerprintPreference(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
this(context, attrs, defStyleAttr, 0);
|
||||
super(context, attrs, defStyleAttr);
|
||||
}
|
||||
|
||||
public FingerprintPreference(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, com.android.internal.R.attr.preferenceStyle);
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public FingerprintPreference(Context context) {
|
||||
this(context, null);
|
||||
super(context);
|
||||
}
|
||||
|
||||
public View getView() { return mView; }
|
||||
|
Reference in New Issue
Block a user