From fb3e46e30a626261a32dae5a426cc0f39bf9fbb5 Mon Sep 17 00:00:00 2001 From: kosyak Date: Mon, 20 May 2024 22:48:08 +0200 Subject: [PATCH] fix throttling default value --- .../eu/siacs/conversations/services/NotificationService.java | 2 +- src/main/res/values/defaults.xml | 1 + src/main/res/xml/preferences.xml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index 55cde7a44..97e6039bf 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -945,7 +945,7 @@ public class NotificationService { return false; } - long throttlingPeriod = mXmppConnectionService.getLongPreference("notification_throttling_period", 0); + long throttlingPeriod = mXmppConnectionService.getLongPreference("notification_throttling_period", R.integer.default_notification_throttling_period); if (throttlingPeriod <= 0) { return false; diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml index 8c7c6ec88..52f74aaf2 100644 --- a/src/main/res/values/defaults.xml +++ b/src/main/res/values/defaults.xml @@ -16,6 +16,7 @@ content://settings/system/notification_sound content://settings/system/ringtone 144 + 0 524288 auto true diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 8cad42374..8570cd1d7 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -80,7 +80,7 @@ android:summary="@string/pref_notification_grace_period_summary" android:title="@string/pref_notification_grace_period" />