diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-02 00:24:37 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-02 00:24:37 +0200 |
commit | 25211f13b37ecef64d6fa9a382a2c30d212452ae (patch) | |
tree | 28c00ef806b77afa4ee8d7a519d4e9968e2b2fb5 /src/main/res/xml/preferences.xml | |
parent | e43a01159cc511e674ccdfccc3f7fa5f118d4a83 (diff) |
make grace period configurable
Diffstat (limited to '')
-rw-r--r-- | src/main/res/xml/preferences.xml | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 80980417..fb0103ed 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -36,6 +36,25 @@ android:key="show_notification" android:summary="@string/pref_notifications_summary" android:title="@string/pref_notifications"/> + <CheckBoxPreference + android:defaultValue="true" + android:dependency="show_notification" + android:key="vibrate_on_notification" + android:summary="@string/pref_vibrate_summary" + android:title="@string/pref_vibrate"/> + <CheckBoxPreference + android:defaultValue="true" + android:dependency="show_notification" + android:key="led" + android:title="@string/pref_led" + android:summary="@string/pref_led_summary"/> + <RingtonePreference + android:defaultValue="content://settings/system/notification_sound" + android:dependency="show_notification" + android:key="notification_ringtone" + android:ringtoneType="notification" + android:summary="@string/pref_sound_summary" + android:title="@string/pref_sound"/> <PreferenceScreen android:dependency="show_notification" android:key="quiet_hours" @@ -59,25 +78,15 @@ android:positiveButtonText="@string/set" android:title="@string/title_pref_quiet_hours_end_time"/> </PreferenceScreen> - <CheckBoxPreference - android:defaultValue="true" - android:dependency="show_notification" - android:key="vibrate_on_notification" - android:summary="@string/pref_vibrate_summary" - android:title="@string/pref_vibrate"/> - <CheckBoxPreference - android:defaultValue="true" - android:dependency="show_notification" - android:key="led" - android:title="@string/pref_led" - android:summary="@string/pref_led_summary"/> - <RingtonePreference - android:defaultValue="content://settings/system/notification_sound" + <ListPreference android:dependency="show_notification" - android:key="notification_ringtone" - android:ringtoneType="notification" - android:summary="@string/pref_sound_summary" - android:title="@string/pref_sound"/> + android:key="grace_period_length" + android:title="@string/pref_notification_grace_period" + android:summary="@string/pref_notification_grace_period_summary" + android:defaultValue="144" + android:entries="@array/grace_periods" + android:entryValues="@array/grace_periods_values" + /> </PreferenceCategory> <PreferenceCategory android:title="@string/pref_attachments"> |