NotificationStore: extract key string.

This commit is contained in:
Johannes Mockenhaupt 2017-10-30 17:29:08 +01:00
parent 9bae22f551
commit 75bc2cd940
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 3 additions and 2 deletions

View file

@ -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) {

View file

@ -777,7 +777,8 @@
<string name="combo_action_idle">Idle</string>
<string name="pump_unreachable">Pump unreachable</string>
<string name="missed_bg_readings">Missed BG readings</string>
<string name="raise_urgent_alarms_as_android_notification" translatable="false">Use system notifications for alerts</string>
<string name="key_raise_urgent_alarms_as_android_notification" translatable="false">raise_urgent_alarms_as_android_notification</string>
<string name="raise_urgent_alarms_as_android_notification">Use system notifications for alerts</string>
<string name="key_enable_pump_unreachable_alert" translatable="false">enable_pump_unreachable_alert</string>
<string name="key_enable_missed_bg_readings_alert" translatable="false">enable_missed_bg_readings</string>
<string name="localalertsettings_title">Local alerts</string>