Cherish:Add ambient pulse and aod notifications [2/2]

Co-authored-by: Ido Ben-Hur <idoybh2@gmail.com>
Change-Id: I86ab495f83d36925b9173870a95277cc88af802b
Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
maxwen
2019-12-03 00:44:16 +05:30
committed by Hưng Phan
parent 36c33da733
commit a38611496a
4 changed files with 229 additions and 3 deletions

View File

@@ -70,4 +70,78 @@
android:summary="@string/notification_sound_vib_screen_on_summary"
android:defaultValue="true" />
<PreferenceCategory
android:key="pulse_ambient_light_category"
android:title="@string/pulse_ambient_light_category" >
<com.cherish.settings.preferences.SystemSettingSwitchPreference
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="ambient_notification_light_enabled"
android:title="@string/ambient_notification_light_enabled_title"
android:summary="@string/ambient_notification_light_enabled_summary"
android:defaultValue="false" />
<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_light_timeout"
android:dialogTitle="@string/ambient_notification_light_timeout_title"
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:defaultValue="0"
android:dependency="ambient_notification_light_enabled"
android:summary="%s" />
<ListPreference
android:key="ambient_notification_light_color_mode"
android:title="@string/ambient_notification_light_color_mode_title"
android:persistent="false"
android:entries="@array/ambient_notification_light_color_mode_entries"
android:entryValues="@array/ambient_notification_light_color_mode_values"
android:defaultValue="2" />
<net.margaritov.preference.colorpicker.ColorPickerPreference
android:key="ambient_notification_light_color"
android:summary="@string/ambient_notification_light_color_summary"
android:title="@string/ambient_notification_light_color_title"
ledPreview="true"
settings:defaultColorValue="0xFF3980FF" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="ambient_light_duration"
android:title="@string/pulse_ambient_light_duration_title"
android:summary="@string/pulse_ambient_light_duration_summary"
android:persistent="false"
android:defaultValue="2"
android:max="10"
settings:min="1"
settings:units="sec"
settings:interval="1"
android:dependency="pulse_ambient_light" />
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
android:key="ambient_light_repeat_count"
android:title="@string/pulse_ambient_light_repeat_count_title"
android:summary="@string/pulse_ambient_light_repeat_count_summary"
android:persistent="false"
android:defaultValue="0"
android:max="10"
settings:min="0"
settings:interval="1"
android:dependency="pulse_ambient_light" />
</PreferenceCategory>
</PreferenceScreen>