diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-08-21 08:21:17 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-08-21 08:21:17 +0000 |
commit | 9bad5024ff2fe13d9fe366ed40a2ea8662620c18 (patch) | |
tree | 6b3b25091732c2c4b7882b6ebea832405e79806f /app/src/main/res/xml | |
parent | 029bbc951b3b7d128b9eb1a469942a8f03676d83 (diff) | |
download | infinity-for-reddit-9bad5024ff2fe13d9fe366ed40a2ea8662620c18.tar infinity-for-reddit-9bad5024ff2fe13d9fe366ed40a2ea8662620c18.tar.gz infinity-for-reddit-9bad5024ff2fe13d9fe366ed40a2ea8662620c18.tar.bz2 infinity-for-reddit-9bad5024ff2fe13d9fe366ed40a2ea8662620c18.tar.lz infinity-for-reddit-9bad5024ff2fe13d9fe366ed40a2ea8662620c18.tar.xz infinity-for-reddit-9bad5024ff2fe13d9fe366ed40a2ea8662620c18.tar.zst infinity-for-reddit-9bad5024ff2fe13d9fe366ed40a2ea8662620c18.zip |
Fixed getting same notifications for different accounts (for real this time). Add a settings acivity but with no use now. Minor bugs fixed. Minor UI tweaks.
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r-- | app/src/main/res/xml/main_preferences.xml | 25 | ||||
-rw-r--r-- | app/src/main/res/xml/notification_preferences.xml | 20 |
2 files changed, 45 insertions, 0 deletions
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml new file mode 100644 index 00000000..5d624d7f --- /dev/null +++ b/app/src/main/res/xml/main_preferences.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + + <Preference + app:key="notification_master" + app:icon="@drawable/ic_outline_notifications_24px" + app:title="@string/settings_notification_master_title" + app:fragment="Settings.NotificationPreferenceFragment" /> + + <ListPreference + app:defaultValue="0" + app:entries="@array/settings_theme" + app:entryValues="@array/settings_theme_values" + app:key="theme" + app:icon="@drawable/ic_outline_color_lens_24px" + app:title="@string/settings_theme_title" + app:useSimpleSummaryProvider="true" /> + + <SwitchPreference + app:defaultValue="true" + app:key="nsfw" + app:title="@string/settings_enable_nsfw_title"/> + +</androidx.preference.PreferenceScreen>
\ No newline at end of file diff --git a/app/src/main/res/xml/notification_preferences.xml b/app/src/main/res/xml/notification_preferences.xml new file mode 100644 index 00000000..1bb81106 --- /dev/null +++ b/app/src/main/res/xml/notification_preferences.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + + <SwitchPreference + app:defaultValue="true" + app:key="enable_notification" + app:icon="@drawable/ic_outline_notifications_24px" + app:title="@string/settings_notification_enable_notification_title"/> + + <ListPreference + app:defaultValue="2" + app:entries="@array/settings_notification_interval" + app:entryValues="@array/settings_notification_interval_values" + app:key="notificaiton_interval" + app:icon="@drawable/ic_outline_access_time_24px" + app:title="@string/settings_notification_interval_title" + app:useSimpleSummaryProvider="true" /> + +</androidx.preference.PreferenceScreen>
\ No newline at end of file |