diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.java index 1912d26b7a..44418a4106 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/aps/loop/LoopPlugin.java @@ -446,26 +446,26 @@ public class LoopPlugin extends PluginBase implements LoopInterface { rxBus.send(new EventNewNotification(carbreqlocal)); } if (sp.getBoolean(R.string.key_ns_create_announcements_from_carbs_req, false)) { - NSUpload.uploadError(resultAfterConstraints.getCarbsRequiredText()); + nsUpload.uploadError(resultAfterConstraints.getCarbsRequiredText()); } if (sp.getBoolean(R.string.key_raise_notifications_as_android_notifications, false)){ Intent intentAction5m = new Intent(context, CarbSuggestionReceiver.class); intentAction5m.putExtra("ignoreDuration", 5); PendingIntent pendingIntent5m = PendingIntent.getBroadcast(context, 1, intentAction5m, PendingIntent.FLAG_UPDATE_CURRENT); NotificationCompat.Action actionIgnore5m = new - NotificationCompat.Action(R.drawable.ic_notif_aaps, sp.getString(R.string.ignore5m,"Ignore 5m"), pendingIntent5m); + NotificationCompat.Action(R.drawable.ic_notif_aaps, resourceHelper.gs(R.string.ignore5m,"Ignore 5m"), pendingIntent5m); Intent intentAction15m = new Intent(context, CarbSuggestionReceiver.class); intentAction15m.putExtra("ignoreDuration", 15); PendingIntent pendingIntent15m = PendingIntent.getBroadcast(context, 1, intentAction15m, PendingIntent.FLAG_UPDATE_CURRENT); NotificationCompat.Action actionIgnore15m = new - NotificationCompat.Action(R.drawable.ic_notif_aaps, sp.getString(R.string.ignore15m,"Ignore 15m"), pendingIntent15m); + NotificationCompat.Action(R.drawable.ic_notif_aaps, resourceHelper.gs(R.string.ignore15m,"Ignore 15m"), pendingIntent15m); Intent intentAction30m = new Intent(context, CarbSuggestionReceiver.class); intentAction30m.putExtra("ignoreDuration", 30); PendingIntent pendingIntent30m = PendingIntent.getBroadcast(context, 1, intentAction30m, PendingIntent.FLAG_UPDATE_CURRENT); NotificationCompat.Action actionIgnore30m = new - NotificationCompat.Action(R.drawable.ic_notif_aaps, sp.getString(R.string.ignore30m,"Ignore 30m"), pendingIntent30m); + NotificationCompat.Action(R.drawable.ic_notif_aaps, resourceHelper.gs(R.string.ignore30m,"Ignore 30m"), pendingIntent30m); NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID); builder.setSmallIcon(R.drawable.notif_icon) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt index a2fe9ce136..910e30c1a9 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt @@ -748,15 +748,17 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList } val lastRun = loopPlugin.lastRun - if (config.APS && lastRun?.constraintsProcessed != null && lastRun?.constraintsProcessed.carbsReq > 0) { - overview_cob?.text = cobText + " *" + lastRun?.constraintsProcessed.carbsReq + " "+R.string.required+"*" - if (!carbAnimation.isRunning) - carbAnimation.start() - } else { - overview_cob?.text = cobText - if (carbAnimation.isRunning) - carbAnimation.stop() - carbAnimation.selectDrawable(0); + if (config.APS && lastRun?.constraintsProcessed != null) { + if (lastRun.constraintsProcessed!!.carbsReq > 0) { + overview_cob?.text = cobText + " | " + lastRun.constraintsProcessed!!.carbsReq + " " + resourceHelper.gs(R.string.required) + if (!carbAnimation.isRunning) + carbAnimation.start() + } else { + overview_cob?.text = cobText + if (carbAnimation.isRunning) + carbAnimation.stop() + carbAnimation.selectDrawable(0); + } } val predictionsAvailable = if (config.APS) lastRun?.request?.hasPredictions == true else config.NSCLIENT diff --git a/app/src/main/jniLibs/README.md b/app/src/main/jniLibs/README.md new file mode 100644 index 0000000000..7041df4e10 --- /dev/null +++ b/app/src/main/jniLibs/README.md @@ -0,0 +1 @@ +# danars-support-lib \ No newline at end of file diff --git a/app/src/main/jniLibs/arm64-v8a/libBleCommandUtil.so b/app/src/main/jniLibs/arm64-v8a/libBleCommandUtil.so new file mode 100644 index 0000000000..69e283b5fe Binary files /dev/null and b/app/src/main/jniLibs/arm64-v8a/libBleCommandUtil.so differ diff --git a/app/src/main/jniLibs/armeabi-v7a/libBleCommandUtil.so b/app/src/main/jniLibs/armeabi-v7a/libBleCommandUtil.so new file mode 100644 index 0000000000..0c717bc3e8 Binary files /dev/null and b/app/src/main/jniLibs/armeabi-v7a/libBleCommandUtil.so differ diff --git a/app/src/main/jniLibs/armeabi/libBleCommandUtil.so b/app/src/main/jniLibs/armeabi/libBleCommandUtil.so new file mode 100644 index 0000000000..a51a8c7d9a Binary files /dev/null and b/app/src/main/jniLibs/armeabi/libBleCommandUtil.so differ diff --git a/app/src/main/jniLibs/mips/libBleCommandUtil.so b/app/src/main/jniLibs/mips/libBleCommandUtil.so new file mode 100644 index 0000000000..fcff5eb6b2 Binary files /dev/null and b/app/src/main/jniLibs/mips/libBleCommandUtil.so differ diff --git a/app/src/main/jniLibs/mips64/libBleCommandUtil.so b/app/src/main/jniLibs/mips64/libBleCommandUtil.so new file mode 100644 index 0000000000..a8a292ea13 Binary files /dev/null and b/app/src/main/jniLibs/mips64/libBleCommandUtil.so differ diff --git a/app/src/main/jniLibs/x86/libBleCommandUtil.so b/app/src/main/jniLibs/x86/libBleCommandUtil.so new file mode 100644 index 0000000000..638a9def95 Binary files /dev/null and b/app/src/main/jniLibs/x86/libBleCommandUtil.so differ diff --git a/app/src/main/jniLibs/x86_64/libBleCommandUtil.so b/app/src/main/jniLibs/x86_64/libBleCommandUtil.so new file mode 100644 index 0000000000..94873d3732 Binary files /dev/null and b/app/src/main/jniLibs/x86_64/libBleCommandUtil.so differ diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 11d278a3e0..a44b94e0f5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -789,6 +789,7 @@ Create announcements from carbs required alerts Create Nightscout announcement for error dialogs and local alerts (also viewable in Careportal under Treatments) Create Nightscout announcements for carbs required alerts + ns_create_announcements_from_carbs_req EVR Show the predictions on the watchface. Predictions