mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2025-07-07 18:42:53 +00:00
Set background refresh setting
This commit is contained in:
@ -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"
|
||||
|
@ -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>
|
||||
|
11
app/src/main/res/xml/app_preferences.xml
Normal file
11
app/src/main/res/xml/app_preferences.xml
Normal 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>
|
Reference in New Issue
Block a user