Show notifications for new blog posts

This also adds a setting allowing people to turn blog post notifications off.

Closes #488
This commit is contained in:
Torsten Grote
2016-07-29 12:57:24 -03:00
committed by akwizgran
parent 8bbb2184ff
commit 04af39f567
9 changed files with 140 additions and 11 deletions

View File

@@ -133,6 +133,10 @@
<item quantity="one">New forum post.</item>
<item quantity="other">%d new forum posts.</item>
</plurals>
<plurals name="blog_post_notification_text">
<item quantity="one">New blog post.</item>
<item quantity="other">%d new blog posts.</item>
</plurals>
<!-- Settings -->
<string name="settings_title">Settings</string>
@@ -151,6 +155,7 @@
<string name="notification_settings_title">Notifications</string>
<string name="notify_private_messages_setting">Show alerts for private messages</string>
<string name="notify_forum_posts_setting">Show alerts for forum posts</string>
<string name="notify_blog_posts_setting">Show alerts for blog posts</string>
<string name="notify_vibration_setting">Vibrate</string>
<string name="notify_sound_setting">Sound</string>
<string name="notify_sound_setting_default">Default ringtone</string>

View File

@@ -69,6 +69,12 @@
android:persistent="false"
android:title="@string/notify_forum_posts_setting"/>
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_notify_blog_posts"
android:persistent="false"
android:title="@string/notify_blog_posts_setting"/>
<CheckBoxPreference
android:defaultValue="true"
android:key="pref_key_notify_vibration"