Added preferences for pull notifications! Also bits of cleanup.
This commit is contained in:
parent
0a45b72391
commit
e0ab25334b
17 changed files with 185 additions and 27 deletions
43
app/src/main/res/xml/preferences.xml
Normal file
43
app/src/main/res/xml/preferences.xml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:key="@string/preferences_file_key">
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/pref_title_notification_settings">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:key="pullNotifications"
|
||||
android:title="@string/pref_title_pull_notifications"
|
||||
android:summary="@string/pref_summary_pull_notifications"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<ListPreference
|
||||
android:dependency="pullNotifications"
|
||||
android:key="pullNotificationCheckInterval"
|
||||
android:title="@string/pref_title_pull_notification_check_interval"
|
||||
android:summary="@string/pref_summary_pull_notification_check_interval"
|
||||
android:entries="@array/pull_notification_check_interval_names"
|
||||
android:entryValues="@array/pull_notification_check_intervals"
|
||||
android:defaultValue="15" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:dependency="pullNotifications"
|
||||
android:key="notificationAlertSound"
|
||||
android:title="@string/pref_title_notification_alert_sound"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:dependency="pullNotifications"
|
||||
android:key="notificationStyleVibrate"
|
||||
android:title="@string/pref_title_notification_style_vibrate"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:dependency="pullNotifications"
|
||||
android:key="notificationStyleLight"
|
||||
android:title="@string/pref_title_notification_style_light"
|
||||
android:defaultValue="false" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Loading…
Add table
Add a link
Reference in a new issue