diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/NotificationStore.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/NotificationStore.java index d017c6514d..58978eeead 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/NotificationStore.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/NotificationStore.java @@ -57,7 +57,7 @@ public class NotificationStore { } } - if (SP.getBoolean("raise_urgent_alarms_as_android_notification", false) + if (SP.getBoolean(MainApp.sResources.getString(R.string.key_raise_urgent_alarms_as_android_notification), false) && n.level == Notification.URGENT) { raiseSystemNotification(n); } else if (n.soundId != null) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 58b1397805..b1f4f55dae 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -777,7 +777,8 @@ Idle Pump unreachable Missed BG readings - Use system notifications for alerts + raise_urgent_alarms_as_android_notification + Use system notifications for alerts enable_pump_unreachable_alert enable_missed_bg_readings Local alerts