show bg missing not no profile

This commit is contained in:
AdrianLxM 2018-05-02 21:09:04 +02:00 committed by GitHub
parent d0e6a2258f
commit eb594c1867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ public class PersistentNotificationPlugin extends PluginBase {
return; return;
} }
String line1 = MainApp.gs(R.string.noprofile); String line1 = "";
if (MainApp.getConfigBuilder().getActiveProfileInterface() == null || !MainApp.getConfigBuilder().isProfileValid("Notificiation")) if (MainApp.getConfigBuilder().getActiveProfileInterface() == null || !MainApp.getConfigBuilder().isProfileValid("Notificiation"))
return; return;
@ -114,6 +114,8 @@ public class PersistentNotificationPlugin extends PluginBase {
MainApp.gs(R.string.old_data) + MainApp.gs(R.string.old_data) +
" "; " ";
} }
} else {
line1 = MainApp.gs(R.string.missed_bg_readings);
} }
TemporaryBasal activeTemp = TreatmentsPlugin.getPlugin().getTempBasalFromHistory(System.currentTimeMillis()); TemporaryBasal activeTemp = TreatmentsPlugin.getPlugin().getTempBasalFromHistory(System.currentTimeMillis());