Skip to content

Commit 8aa3343

Browse files
committed
Reversed to original
1 parent 6652f7f commit 8aa3343

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

ColorPickerPreference/src/main/java/net/margaritov/preference/colorpicker/ColorPickerPreference.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,7 @@ public ColorPickerPreference(Context context, AttributeSet attrs, int defStyle)
6666

6767
@Override
6868
protected Object onGetDefaultValue(TypedArray a, int index) {
69-
int colorInt;
70-
String mHexDefaultValue = a.getString(index);
71-
if (mHexDefaultValue != null && mHexDefaultValue.startsWith("#")) {
72-
colorInt = convertToColorInt(mHexDefaultValue);
73-
return colorInt;
74-
75-
} else {
76-
return a.getColor(index, Color.BLACK);
77-
}
69+
return a.getColor(index, Color.BLACK);
7870
}
7971

8072
@Override

0 commit comments

Comments
 (0)