Merge pull request #977 from MilosKozak/persistent-text

show bg missing not no profile
This commit is contained in:
Milos Kozak 2018-05-02 22:38:07 +02:00 committed by GitHub
commit a64bfe7a39
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;
}
String line1 = MainApp.gs(R.string.noprofile);
String line1 = "";
if (MainApp.getConfigBuilder().getActiveProfileInterface() == null || !MainApp.getConfigBuilder().isProfileValid("Notificiation"))
return;
@ -114,6 +114,8 @@ public class PersistentNotificationPlugin extends PluginBase {
MainApp.gs(R.string.old_data) +
" ";
}
} else {
line1 = MainApp.gs(R.string.missed_bg_readings);
}
TemporaryBasal activeTemp = TreatmentsPlugin.getPlugin().getTempBasalFromHistory(System.currentTimeMillis());