diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index 8a56813..b4fb303 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -498,21 +498,6 @@ 1800000 - - - @string/accent_color - @string/notification_color - @string/wallpaper_color - @string/custom_color - - - - 0 - 1 - 2 - 3 - - 12 diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 8ec98ac..62e6041 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -716,22 +716,6 @@ Replace heads-up notification with slim and less invasive version of redesigned ticker Use app colored background Replace reTicker background color using notification app main color - - - Edge light - Enable Edge Light - Display an animation along the edges of the screen when pulsing - Always trigger on pulse - Whether to show edge light whenever ambient display is shown and not just for notifications - Repeat animation - Repeat until timeout - Show only once - Edge light color mode - Accent color (Default) - Notification color - Wallpaper color - Custom color - Custom color Power/reboot menu opacity diff --git a/res/xml/cherish_settings_edge_light.xml b/res/xml/cherish_settings_edge_light.xml deleted file mode 100644 index ffd3a1c..0000000 --- a/res/xml/cherish_settings_edge_light.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/xml/cherish_settings_lockscreen.xml b/res/xml/cherish_settings_lockscreen.xml index 9173bda..3907698 100644 --- a/res/xml/cherish_settings_lockscreen.xml +++ b/res/xml/cherish_settings_lockscreen.xml @@ -33,12 +33,6 @@ android:entries="@array/torch_power_button_gesture_entries" android:entryValues="@array/torch_power_button_gesture_values" /> - - (MAIN_SWITCH_KEY)?.also { - updatePreferences(it.isChecked) - it.addOnSwitchChangeListener(this) - } - } - - override protected fun getPreferenceScreenResId() = R.xml.cherish_settings_edge_light - - override protected fun getLogTag() = TAG - - override protected fun createPreferenceControllers( - context: Context - ): List = buildPreferenceControllers(context, settingsLifecycle) - - override fun onSwitchChanged(switchView: Switch, isChecked: Boolean) { - updatePreferences(isChecked) - } - - private fun updatePreferences(isChecked: Boolean) { - preferenceScreen.forEachIndexed { _, preference -> - if (preference !is MainSwitchPreference && - preference !is TopIntroPreference - ) preference.isVisible = isChecked - } - } - - companion object { - private const val TAG = "EdgeLightSettingsFragment" - - private const val MAIN_SWITCH_KEY = "edge_light_enabled" - private const val CUSTOM_COLOR_PREFERENCE_KEY = "edge_light_custom_color" - - private fun buildPreferenceControllers( - context: Context, - lifecycle: Lifecycle?, - ): List = listOf( - EdgeLightColorPickerPreferenceController(context, CUSTOM_COLOR_PREFERENCE_KEY, lifecycle) - ) - - @JvmField - val SEARCH_INDEX_DATA_PROVIDER = object : BaseSearchIndexProvider(R.xml.cherish_settings_edge_light) { - override fun createPreferenceControllers( - context: Context - ): List = buildPreferenceControllers( - context, null /* lifecycle */) - } - } -} \ No newline at end of file