Set background refresh setting

This commit is contained in:
Pierre
2018-04-09 09:21:41 +02:00
parent b600306d79
commit 32eed6322f
5 changed files with 77 additions and 0 deletions

View File

@ -7,6 +7,11 @@
android:id="@+id/action_friends_list"
android:title="@string/main_menu_friends_list" />
<!-- Settings -->
<item
android:id="@+id/action_settings"
android:title="@string/action_settings"/>
<!-- Sign out -->
<item
android:id="@+id/action_logout"

View File

@ -143,4 +143,8 @@
<string name="popup_editpost_confirm">Edit</string>
<string name="edit_post_content_hint">New content for the post</string>
<string name="err_update_post_content">An error occurred while trying to update the content of the post!</string>
<string name="action_settings">Settings</string>
<string name="fragment_settings_title">Settings</string>
<string name="preference_background_notif_title">Background notifications refresh</string>
<string name="preference_background_notif_summary">This allow you to stay informed about the latest notifications on Comunic by checking at a regular interval the existence of notifications, even if the application is closed.</string>
</resources>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Enable and / or disable notification service -->
<SwitchPreference
android:defaultValue="true"
android:key="enable_background_notification_refresh"
android:title="@string/preference_background_notif_title"
android:summary="@string/preference_background_notif_summary"/>
</PreferenceScreen>