[Terms of Address] Add a constructor with Attr for xml
Bug: 283918568 Test: manual Change-Id: I97cfa581c7ad34e3c124b6e0dd9d9818d77114d3
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.settings.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
@@ -32,6 +33,15 @@ public class TickButtonPreference extends Preference {
|
||||
|
||||
public TickButtonPreference(Context context) {
|
||||
super(context);
|
||||
init(context, null);
|
||||
}
|
||||
|
||||
public TickButtonPreference(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
init(context, attrs);
|
||||
}
|
||||
|
||||
private void init(Context context, AttributeSet attrs) {
|
||||
setWidgetLayoutResource(R.layout.preference_check_icon);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user