aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/res')
-rw-r--r--src/main/res/values-de/strings.xml2
-rw-r--r--src/main/res/values/defaults.xml1
-rw-r--r--src/main/res/values/strings.xml2
-rw-r--r--src/main/res/xml/preferences.xml6
4 files changed, 11 insertions, 0 deletions
diff --git a/src/main/res/values-de/strings.xml b/src/main/res/values-de/strings.xml
index d7e45abdd..ff483d499 100644
--- a/src/main/res/values-de/strings.xml
+++ b/src/main/res/values-de/strings.xml
@@ -727,5 +727,7 @@
<string name="account_status_regis_web">Server verlangt Registrierung auf Webseite</string>
<string name="application_found_to_open_website">Keine Anwendung zum Öffnen von Webseiten gefunden</string>
<string name="open_website">Webseite anzeigen</string>
+ <string name="pref_headsup_notifications">Benachrichtigungsvorschau</string>
+ <string name="pref_headsup_notifications_summary">Zeige Benachrichtigungsvorschau am oberen Bildschirmrand an</string>
</resources>
diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml
index 2b3d62f25..8cee33d5f 100644
--- a/src/main/res/values/defaults.xml
+++ b/src/main/res/values/defaults.xml
@@ -4,4 +4,5 @@
<bool name="portrait_only">true</bool>
<bool name="enter_is_send">false</bool>
<bool name="notifications_from_strangers">false</bool>
+ <bool name="headsup_notifications">true</bool>
</resources> \ No newline at end of file
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 344f7bf18..0cdf39614 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -775,4 +775,6 @@
<string name="account_status_regis_web">Server requires registration on website</string>
<string name="application_found_to_open_website">No application found to open website</string>
<string name="open_website">Open website</string>
+ <string name="pref_headsup_notifications">Heads-up Notifications</string>
+ <string name="pref_headsup_notifications_summary">Show Heads-up Notifications</string>
</resources>
diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml
index 4e8fcb412..877a9b05a 100644
--- a/src/main/res/xml/preferences.xml
+++ b/src/main/res/xml/preferences.xml
@@ -54,6 +54,12 @@
android:key="show_notification"
android:summary="@string/pref_notifications_summary"
android:title="@string/pref_notifications" />
+ <CheckBoxPreference
+ android:defaultValue="@bool/headsup_notifications"
+ android:dependency="show_notification"
+ android:key="notification_headsup"
+ android:summary="@string/pref_headsup_notifications_summary"
+ android:title="@string/pref_headsup_notifications" />
<PreferenceScreen
android:dependency="show_notification"
android:key="quiet_hours"