[SQUASHED] Cherish: Add ambient pulse and aod notifications [2/2]
@/SKULSHADY - Clean up and adapted for A11 SDB: improvise the enabling/disabling of colorpicker preference to avoid fc Co-authored-by: maxwen <max.weninger@gmail.com> Co-authored-by: Ido Ben-Hur <idoybh2@gmail.com> Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -18,29 +18,88 @@
|
||||
android:title="@string/notifications_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<!-- <PreferenceCategory
|
||||
android:key="incall_vib_options"
|
||||
android:title="@string/incall_vibration_category">
|
||||
<PreferenceCategory
|
||||
android:key="pulse_ambient_light_category"
|
||||
android:title="@string/pulse_ambient_light_category" >
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="vibrate_on_connect"
|
||||
android:icon="@drawable/ic_vibrate"
|
||||
android:title="@string/incall_vibrate_connect_title"
|
||||
android:defaultValue="true" />
|
||||
android:key="pulse_ambient_light"
|
||||
android:title="@string/pulse_ambient_light_title"
|
||||
android:summary="@string/pulse_ambient_light_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="vibrate_on_callwaiting"
|
||||
android:icon="@drawable/ic_vibrate"
|
||||
android:title="@string/incall_vibrate_call_wait_title"
|
||||
android:defaultValue="true" />
|
||||
android:key="ambient_light_pulse_for_all"
|
||||
android:title="@string/pulse_ambient_light_show_always_title"
|
||||
android:summary="@string/pulse_ambient_light_show_always_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="vibrate_on_disconnect"
|
||||
android:icon="@drawable/ic_vibrate"
|
||||
android:title="@string/incall_vibrate_disconnect_title"
|
||||
android:defaultValue="true" />
|
||||
android:key="ambient_notification_light_enabled"
|
||||
android:title="@string/ambient_notification_light_enabled_title"
|
||||
android:summary="@string/ambient_notification_light_enabled_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
</PreferenceCategory> -->
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="ambient_notification_light_hide_aod"
|
||||
android:title="@string/ambient_notification_light_hide_aod_title"
|
||||
android:summary="@string/ambient_notification_light_hide_aod_summary"
|
||||
android:defaultValue="false"
|
||||
android:dependency="ambient_notification_light_enabled" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="ambient_notification_color_mode"
|
||||
android:title="@string/pulse_ambient_light_color_mode_title"
|
||||
android:entries="@array/pulse_ambient_light_color_mode_entries"
|
||||
android:entryValues="@array/pulse_ambient_light_color_mode_values"
|
||||
android:summary="%s"
|
||||
android:defaultValue="0" />
|
||||
|
||||
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
||||
android:key="ambient_notification_light_color"
|
||||
android:title="@string/pulse_ambient_light_color_title"
|
||||
android:defaultValue="0xFFFFFFFF" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="ambient_light_layout"
|
||||
android:title="@string/pulse_ambient_light_layout_title"
|
||||
android:entries="@array/pulse_ambient_light_layout_entries"
|
||||
android:entryValues="@array/pulse_ambient_light_layout_values"
|
||||
android:summary="%s"
|
||||
android:defaultValue="1" />
|
||||
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="ambient_notification_light_duration"
|
||||
android:title="@string/pulse_ambient_light_duration_title"
|
||||
android:max="5"
|
||||
settings:min="1"
|
||||
settings:defaultValue="2"
|
||||
settings:units="sec" />
|
||||
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="ambient_notification_light_repeats"
|
||||
android:title="@string/pulse_ambient_light_repeat_count_title"
|
||||
android:max="10"
|
||||
settings:min="0"
|
||||
settings:defaultValue="0" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="ambient_light_repeat_direction"
|
||||
android:title="@string/pulse_ambient_light_repeat_direction_title"
|
||||
android:entries="@array/pulse_ambient_light_repeat_direction_entries"
|
||||
android:entryValues="@array/pulse_ambient_light_repeat_direction_values"
|
||||
android:summary="%s"
|
||||
android:defaultValue="0" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="ambient_notification_light_timeout"
|
||||
android:title="@string/ambient_notification_light_timeout_title"
|
||||
android:entries="@array/ambient_notification_light_timeout_entries"
|
||||
android:entryValues="@array/ambient_notification_light_timeout_values"
|
||||
android:summary="%s"
|
||||
android:defaultValue="0" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<Preference
|
||||
android:key="charging_light"
|
||||
|
||||
Reference in New Issue
Block a user