diff --git a/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreference.java b/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreference.java index 0021dd5..5b748ed 100644 --- a/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreference.java +++ b/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreference.java @@ -58,7 +58,6 @@ public ColorPreference(Context context, AttributeSet attrs, int defStyle) { } private void init(AttributeSet attrs) { - setPersistent(true); TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.ColorPreference); showDialog = a.getBoolean(R.styleable.ColorPreference_cpv_showDialog, true); //noinspection WrongConstant diff --git a/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreferenceCompat.java b/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreferenceCompat.java index 42e579e..c836e5c 100644 --- a/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreferenceCompat.java +++ b/library/src/main/java/com/jaredrummler/android/colorpicker/ColorPreferenceCompat.java @@ -43,7 +43,6 @@ public ColorPreferenceCompat(Context context, AttributeSet attrs, int defStyle) } private void init(AttributeSet attrs) { - setPersistent(true); TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.ColorPreference); showDialog = a.getBoolean(R.styleable.ColorPreference_cpv_showDialog, true); //noinspection WrongConstant