diff --git a/src/com/cherish/settings/fragments/NotificationSettings.java b/src/com/cherish/settings/fragments/NotificationSettings.java index 83e6a29..ccbb182 100644 --- a/src/com/cherish/settings/fragments/NotificationSettings.java +++ b/src/com/cherish/settings/fragments/NotificationSettings.java @@ -37,17 +37,16 @@ public class NotificationSettings extends SettingsPreferenceFragment implements } mEdgeLightColorPreference = (ColorPickerPreference) findPreference(PULSE_AMBIENT_LIGHT_COLOR); + mEdgeLightColorPreference.setOnPreferenceChangeListener(this); int edgeLightColor = Settings.System.getInt(getContentResolver(), Settings.System.PULSE_AMBIENT_LIGHT_COLOR, 0xFF3980FF); - mEdgeLightColorPreference.setNewPreviewColor(edgeLightColor); - mEdgeLightColorPreference.setAlphaSliderEnabled(false); String edgeLightColorHex = String.format("#%08x", (0xFF3980FF & edgeLightColor)); if (edgeLightColorHex.equals("#ff3980ff")) { mEdgeLightColorPreference.setSummary(R.string.default_string); } else { mEdgeLightColorPreference.setSummary(edgeLightColorHex); } - mEdgeLightColorPreference.setOnPreferenceChangeListener(this); + mEdgeLightColorPreference.setNewPreviewColor(edgeLightColor); }