aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-08-01 08:39:38 +0200
committerChristian Schneppe <christian@pix-art.de>2017-08-01 08:41:51 +0200
commit3831b987f76e2b0b143b45619a455d7ec4625bcd (patch)
treed704403a136dd3f5f7c995c1bf56855255e232b1 /src/main/res
parent6c2479b29c93222f83a2e672531fb681143c6fd1 (diff)
use DND instead of XA when phone is silent
Diffstat (limited to 'src/main/res')
-rw-r--r--src/main/res/values-de/strings.xml8
-rw-r--r--src/main/res/values/defaults.xml2
-rw-r--r--src/main/res/values/strings.xml6
-rw-r--r--src/main/res/xml/preferences.xml14
4 files changed, 16 insertions, 14 deletions
diff --git a/src/main/res/values-de/strings.xml b/src/main/res/values-de/strings.xml
index 7e9ff6420..0e15dbf4b 100644
--- a/src/main/res/values-de/strings.xml
+++ b/src/main/res/values-de/strings.xml
@@ -453,10 +453,10 @@
<string name="pref_presence_settings">Status</string>
<string name="pref_away_when_screen_off">Abwesend bei abgeschaltetem Bildschirm</string>
<string name="pref_away_when_screen_off_summary">Setzt deinen Status auf \"abwesend\", solange dein Bildschirm abgeschaltet ist</string>
- <string name="pref_xa_on_silent_mode">Nicht verfügbar bei Stummschaltung</string>
- <string name="pref_xa_on_silent_mode_summary">Setzt deinen Status auf \"nicht verfügbar\", solange dein Gerät lautlos ist</string>
- <string name="pref_treat_vibrate_as_silent">Vibration als Lautlos behandeln</string>
- <string name="pref_treat_vibrate_as_silent_summary">Setzt deinen Status auf \"nicht verfügbar\", solange das Gerät auf Vibration geschaltet ist</string>
+ <string name="pref_dnd_on_silent_mode">\"Bitte nicht stören\" bei Stummschaltung</string>
+ <string name="pref_dnd_on_silent_mode_summary">Setzt deinen Status auf \"Bitte nicht stören\", solange dein Gerät stummgeschaltet ist</string>
+ <string name="pref_treat_vibrate_as_dnd">Vibration als \"Lautlos\" behandeln</string>
+ <string name="pref_treat_vibrate_as_dnd_summary">Setzt deinen Status auf \"Bitte nicht stören\", solange das Gerät auf Vibration geschaltet ist</string>
<string name="hostname_example">xmpp.pix-art.de</string>
<string name="action_add_account_with_certificate">Profil mit Zertifikat hinzufügen</string>
<string name="unable_to_parse_certificate">Zertifikat kann nicht gelesen werden</string>
diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml
index 8cee33d5f..46f313da9 100644
--- a/src/main/res/values/defaults.xml
+++ b/src/main/res/values/defaults.xml
@@ -5,4 +5,6 @@
<bool name="enter_is_send">false</bool>
<bool name="notifications_from_strangers">false</bool>
<bool name="headsup_notifications">true</bool>
+ <bool name="dnd_on_silent_mode">false</bool>
+ <bool name="treat_vibrate_as_silent">false</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 d8ff9fa52..e2c9c5873 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -529,11 +529,11 @@
<string name="pref_presence_settings">Presence</string>
<string name="pref_away_when_screen_off">Away when screen is off</string>
<string name="pref_away_when_screen_off_summary">Marks your resource as away when the screen is turned off</string>
- <string name="pref_xa_on_silent_mode">Not available in silent mode</string>
+ <string name="pref_dnd_on_silent_mode">\"Do not disturb\" in silent mode</string>
<string name="update_info">Pix-Art Messenger is checking for an update. If an update is available you will be asked, if you want to update your version. The update process is downloading and installing the new version automatically.\n\nPlease wait…</string>
- <string name="pref_xa_on_silent_mode_summary">Marks your resource as not available when device is in silent mode</string>
+ <string name="pref_dnd_on_silent_mode_summary">Marks your resource as \"Do not disturb\" when device is in silent mode</string>
<string name="pref_treat_vibrate_as_silent">Treat vibrate as silent mode</string>
- <string name="pref_treat_vibrate_as_silent_summary">Marks your resource as not available when device is on vibrate</string>
+ <string name="pref_treat_vibrate_as_dnd_summary">Marks your resource as \"Do not disturb\" when device is on vibrate</string>
<string name="hostname_example">xmpp.pix-art.de</string>
<string name="action_add_account_with_certificate">Add account with certificate</string>
<string name="unable_to_parse_certificate">Unable to parse certificate</string>
diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml
index 877a9b05a..a9b3439b7 100644
--- a/src/main/res/xml/preferences.xml
+++ b/src/main/res/xml/preferences.xml
@@ -168,16 +168,16 @@
android:summary="@string/pref_away_when_screen_off_summary"
android:title="@string/pref_away_when_screen_off" />
<CheckBoxPreference
- android:defaultValue="false"
+ android:defaultValue="@bool/dnd_on_silent_mode"
android:dependency="manually_change_presence"
- android:key="xa_on_silent_mode"
- android:summary="@string/pref_xa_on_silent_mode_summary"
- android:title="@string/pref_xa_on_silent_mode" />
+ android:key="dnd_on_silent_mode"
+ android:summary="@string/pref_dnd_on_silent_mode_summary"
+ android:title="@string/pref_dnd_on_silent_mode" />
<CheckBoxPreference
- android:defaultValue="false"
- android:dependency="xa_on_silent_mode"
+ android:defaultValue="@bool/treat_vibrate_as_silent"
+ android:dependency="dnd_on_silent_mode"
android:key="treat_vibrate_as_silent"
- android:summary="@string/pref_treat_vibrate_as_silent_summary"
+ android:summary="@string/pref_treat_vibrate_as_dnd_summary"
android:title="@string/pref_treat_vibrate_as_silent" />
</PreferenceScreen>
<!--Security-->