From dfdea8273127b7a885e60ce79c4d7badf72b142c Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 17 Aug 2021 18:08:29 +0200 Subject: [PATCH 01/10] fix Action loading --- .../general/automation/actions/Action.kt | 36 ++++++++++++++++--- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/automation/src/main/java/info/nightscout/androidaps/plugins/general/automation/actions/Action.kt b/automation/src/main/java/info/nightscout/androidaps/plugins/general/automation/actions/Action.kt index 9d3b86e875..df4d6faad3 100644 --- a/automation/src/main/java/info/nightscout/androidaps/plugins/general/automation/actions/Action.kt +++ b/automation/src/main/java/info/nightscout/androidaps/plugins/general/automation/actions/Action.kt @@ -9,7 +9,6 @@ import info.nightscout.androidaps.queue.Callback import org.json.JSONException import org.json.JSONObject import javax.inject.Inject -import kotlin.reflect.full.primaryConstructor abstract class Action(val injector: HasAndroidInjector) { @@ -48,10 +47,37 @@ abstract class Action(val injector: HasAndroidInjector) { fun instantiate(obj: JSONObject): Action? { try { val type = obj.getString("type") - val data = obj.optJSONObject("data") - val clazz = Class.forName(type).kotlin - return (clazz.primaryConstructor?.call(injector) as Action).fromJSON(data?.toString() - ?: "") + val data = obj.getJSONObject("data") + when (type) { + ActionAlarm::class.java.name, // backward compatibility + ActionAlarm::class.java.simpleName -> ActionAlarm(injector).fromJSON(data.toString()) + ActionDummy::class.java.name, + ActionDummy::class.java.simpleName -> ActionDummy(injector).fromJSON(data.toString()) + ActionLoopDisable::class.java.name, + ActionLoopDisable::class.java.simpleName -> ActionLoopDisable(injector).fromJSON(data.toString()) + ActionLoopEnable::class.java.name, + ActionLoopEnable::class.java.simpleName -> ActionLoopEnable(injector).fromJSON(data.toString()) + ActionLoopResume::class.java.name, + ActionLoopResume::class.java.simpleName -> ActionLoopResume(injector).fromJSON(data.toString()) + ActionLoopSuspend::class.java.name, + ActionLoopSuspend::class.java.simpleName -> ActionLoopSuspend(injector).fromJSON(data.toString()) + ActionNotification::class.java.name, + ActionNotification::class.java.simpleName -> ActionNotification(injector).fromJSON(data.toString()) + ActionProfileSwitch::class.java.name, + ActionProfileSwitch::class.java.simpleName -> ActionProfileSwitch(injector).fromJSON(data.toString()) + ActionProfileSwitchPercent::class.java.name, + ActionProfileSwitchPercent::class.java.simpleName -> ActionProfileSwitchPercent(injector).fromJSON(data.toString()) + ActionSendSMS::class.java.name, + ActionSendSMS::class.java.simpleName -> ActionSendSMS(injector).fromJSON(data.toString()) + ActionStartTempTarget::class.java.name, + ActionStartTempTarget::class.java.simpleName -> ActionStartTempTarget(injector).fromJSON(data.toString()) + ActionStopTempTarget::class.java.name, + ActionStopTempTarget::class.java.simpleName -> ActionStopTempTarget(injector).fromJSON(data.toString()) + else -> throw ClassNotFoundException(type) + } + //val clazz = Class.forName(type).kotlin + //return (clazz.primaryConstructor?.call(injector) as Action).fromJSON(data?.toString() + // ?: "") //return (clazz.newInstance() as Action).fromJSON(data?.toString() ?: "") } catch (e: ClassNotFoundException) { aapsLogger.error("Unhandled exception", e) From 7cd71f727fdb7908540050a3694a79ac8007e584 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 19 Aug 2021 13:33:09 +0200 Subject: [PATCH 02/10] libs update --- build.gradle | 18 +++++++++--------- core/core_dependencies.gradle | 5 +++-- gradle/test_dependencies.gradle | 6 +++--- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/build.gradle b/build.gradle index d95f882706..19d420b6d7 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ buildscript { ext { - kotlin_version = '1.5.10' + kotlin_version = '1.5.21' coreVersion = '1.6.0' rxjava_version = '2.2.21' rxandroid_version = '2.1.1' @@ -11,13 +11,13 @@ buildscript { lifecycle_version = '2.3.1' dagger_version = '2.38.1' coroutinesVersion = '1.4.1' - activityVersion = '1.2.0' - fragmentktx_version = '1.3.0' + activityVersion = '1.3.1' + fragmentktx_version = '1.3.6' ormLiteVersion = '4.46' - nav_version = '2.3.3' - appcompat_version = '1.3.0' - material_version = '1.3.0' - constraintlayout_version = '2.0.4' + nav_version = '2.3.5' + appcompat_version = '1.3.1' + material_version = '1.4.0' + constraintlayout_version = '2.1.0' preferencektx_version = '1.1.1' commonslang3_version = '3.11' commonscodec_version = '1.15' @@ -30,7 +30,7 @@ buildscript { dexmakerVersion = "1.2" retrofit2Version = '2.9.0' okhttp3Version = '4.9.0' - byteBuddyVersion = '1.11.5' + byteBuddyVersion = '1.11.12' androidx_junit = '1.1.2' androidx_rules = '1.4.0-alpha04' @@ -42,7 +42,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:7.0.0' - classpath 'com.google.gms:google-services:4.3.8' + classpath 'com.google.gms:google-services:4.3.10' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/core/core_dependencies.gradle b/core/core_dependencies.gradle index 8e261738bb..aa285737bb 100644 --- a/core/core_dependencies.gradle +++ b/core/core_dependencies.gradle @@ -15,7 +15,7 @@ dependencies { api "androidx.activity:activity-ktx:${activityVersion}" api "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" api 'androidx.cardview:cardview:1.0.0' - api 'androidx.recyclerview:recyclerview:1.1.0' + api 'androidx.recyclerview:recyclerview:1.2.1' api 'androidx.gridlayout:gridlayout:1.0.0' api 'androidx.percentlayout:percentlayout:1.0.0' api "com.google.android.material:material:$material_version" @@ -55,7 +55,7 @@ dependencies { api "com.j256.ormlite:ormlite-android:${ormLiteVersion}" // pumpCommon - api "com.google.code.gson:gson:2.8.6" + api "com.google.code.gson:gson:2.8.7" // don't kill my app api('dev.doubledot.doki:library:0.0.1@aar') { @@ -103,5 +103,6 @@ dependencies { api "commons-codec:commons-codec:$commonscodec_version" // Phone checker + // updating to 0.0.9 prevents AAPS from build api 'com.scottyab:rootbeer-lib:0.0.8' } \ No newline at end of file diff --git a/gradle/test_dependencies.gradle b/gradle/test_dependencies.gradle index 059f92d2a7..8f64082505 100644 --- a/gradle/test_dependencies.gradle +++ b/gradle/test_dependencies.gradle @@ -1,19 +1,19 @@ dependencies { testImplementation "junit:junit:$junit_version" - testImplementation 'org.json:json:20201115' + testImplementation 'org.json:json:20210307' testImplementation "org.mockito:mockito-core:${mockitoVersion}" testImplementation "org.powermock:powermock-api-mockito2:${powermockVersion}" testImplementation "org.powermock:powermock-module-junit4-rule-agent:${powermockVersion}" testImplementation "org.powermock:powermock-module-junit4-rule:${powermockVersion}" testImplementation "org.powermock:powermock-module-junit4:${powermockVersion}" testImplementation "joda-time:joda-time:$jodatime_version" - testImplementation('com.google.truth:truth:1.1.2') { + testImplementation('com.google.truth:truth:1.1.3') { exclude group: "com.google.guava", module: "guava" } testImplementation "org.skyscreamer:jsonassert:1.5.0" testImplementation "org.hamcrest:hamcrest-all:1.3" - androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0-alpha04' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation "androidx.test.ext:junit:$androidx_junit" androidTestImplementation "androidx.test:rules:$androidx_rules" From 6e0d6344ace05a2f8da1b112d5e7bca834d9fc2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 19 Aug 2021 11:33:58 +0000 Subject: [PATCH 03/10] Bump byteBuddyVersion from 1.11.5 to 1.11.13 Bumps `byteBuddyVersion` from 1.11.5 to 1.11.13. Updates `byte-buddy` from 1.11.5 to 1.11.13 - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.11.5...byte-buddy-1.11.13) Updates `byte-buddy-android` from 1.11.5 to 1.11.13 - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.11.5...byte-buddy-1.11.13) Updates `byte-buddy-agent` from 1.11.5 to 1.11.13 - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.11.5...byte-buddy-1.11.13) --- updated-dependencies: - dependency-name: net.bytebuddy:byte-buddy dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: net.bytebuddy:byte-buddy-android dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: net.bytebuddy:byte-buddy-agent dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 19d420b6d7..c96e9e144e 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ buildscript { dexmakerVersion = "1.2" retrofit2Version = '2.9.0' okhttp3Version = '4.9.0' - byteBuddyVersion = '1.11.12' + byteBuddyVersion = '1.11.13' androidx_junit = '1.1.2' androidx_rules = '1.4.0-alpha04' From 8fc2f3154004ac4f956f6cfd23a96868d70f562a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Aug 2021 08:06:29 +0000 Subject: [PATCH 04/10] Bump mockito-core from 3.11.2 to 3.12.0 Bumps [mockito-core](https://github.com/mockito/mockito) from 3.11.2 to 3.12.0. - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](https://github.com/mockito/mockito/compare/v3.11.2...v3.12.0) --- updated-dependencies: - dependency-name: org.mockito:mockito-core dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 19d420b6d7..80629902c8 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ buildscript { work_version = '2.5.0' junit_version = '4.13.2' - mockitoVersion = '3.11.2' + mockitoVersion = '3.12.0' powermockVersion = '2.0.9' dexmakerVersion = "1.2" retrofit2Version = '2.9.0' From e6d5481a007bc395d57fec6827311657d6eae87a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 08:07:18 +0000 Subject: [PATCH 05/10] Bump mockito-core from 3.12.0 to 3.12.1 Bumps [mockito-core](https://github.com/mockito/mockito) from 3.12.0 to 3.12.1. - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](https://github.com/mockito/mockito/compare/v3.12.0...v3.12.1) --- updated-dependencies: - dependency-name: org.mockito:mockito-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 80629902c8..30d395edc4 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ buildscript { work_version = '2.5.0' junit_version = '4.13.2' - mockitoVersion = '3.12.0' + mockitoVersion = '3.12.1' powermockVersion = '2.0.9' dexmakerVersion = "1.2" retrofit2Version = '2.9.0' From 9b30b15a504aa35fb7d63716b5d5053dcc7a3223 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 08:07:24 +0000 Subject: [PATCH 06/10] Bump xstream from 1.4.17 to 1.4.18 Bumps [xstream](https://github.com/x-stream/xstream) from 1.4.17 to 1.4.18. - [Release notes](https://github.com/x-stream/xstream/releases) - [Commits](https://github.com/x-stream/xstream/commits) --- updated-dependencies: - dependency-name: com.thoughtworks.xstream:xstream dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pump-common/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pump-common/build.gradle b/pump-common/build.gradle index 5bb1a09fa4..10a6c55b08 100644 --- a/pump-common/build.gradle +++ b/pump-common/build.gradle @@ -12,7 +12,7 @@ dependencies { implementation project(':core') //implementation project(':database') - implementation('com.thoughtworks.xstream:xstream:1.4.17') { + implementation('com.thoughtworks.xstream:xstream:1.4.18') { exclude group: 'xmlpull', module: 'xmlpull' } } From 55f1b5fa0a710005909c316d7b9777e1d7512fd3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 08:07:53 +0000 Subject: [PATCH 07/10] Bump gson from 2.8.7 to 2.8.8 Bumps [gson](https://github.com/google/gson) from 2.8.7 to 2.8.8. - [Release notes](https://github.com/google/gson/releases) - [Changelog](https://github.com/google/gson/blob/master/CHANGELOG.md) - [Commits](https://github.com/google/gson/compare/gson-parent-2.8.7...gson-parent-2.8.8) --- updated-dependencies: - dependency-name: com.google.code.gson:gson dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- database/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/build.gradle b/database/build.gradle index 951064cb47..f570a3d484 100644 --- a/database/build.gradle +++ b/database/build.gradle @@ -24,7 +24,7 @@ dependencies { implementation "io.reactivex.rxjava2:rxandroid:$rxandroid_version" implementation("io.reactivex.rxjava2:rxkotlin:$rxkotlin_version") - implementation "com.google.code.gson:gson:2.8.7" + implementation "com.google.code.gson:gson:2.8.8" api "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" From e4db86facc36161cb83e953daee04f183a8f2c43 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 26 Aug 2021 08:05:33 +0000 Subject: [PATCH 08/10] Bump mockito-core from 3.12.1 to 3.12.4 Bumps [mockito-core](https://github.com/mockito/mockito) from 3.12.1 to 3.12.4. - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](https://github.com/mockito/mockito/compare/v3.12.1...v3.12.4) --- updated-dependencies: - dependency-name: org.mockito:mockito-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 4149b6ca4d..4ccd6dd22e 100644 --- a/build.gradle +++ b/build.gradle @@ -25,7 +25,7 @@ buildscript { work_version = '2.5.0' junit_version = '4.13.2' - mockitoVersion = '3.12.1' + mockitoVersion = '3.12.4' powermockVersion = '2.0.9' dexmakerVersion = "1.2" retrofit2Version = '2.9.0' From 5411f4fb3c02ba6a85d142fcb31b0d7d0c824d52 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 28 Aug 2021 20:58:27 +0200 Subject: [PATCH 09/10] key_ns_receive_profile_store default true to fetch NS profiles in setup wizard --- .../androidaps/dialogs/LoopDialog.kt | 39 ++++++++++++------- .../general/maintenance/MaintenancePlugin.kt | 1 + .../profile/local/LocalProfilePlugin.kt | 2 +- .../main/res/xml/pref_nsclientinternal.xml | 2 +- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt index 6c335de9ad..374ce2a36e 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/LoopDialog.kt @@ -74,7 +74,10 @@ class LoopDialog : DaggerDialogFragment() { override fun onStart() { super.onStart() - dialog?.window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT) + dialog?.window?.setLayout( + ViewGroup.LayoutParams.MATCH_PARENT, + ViewGroup.LayoutParams.WRAP_CONTENT + ) } override fun onSaveInstanceState(savedInstanceState: Bundle) { @@ -159,7 +162,7 @@ class LoopDialog : DaggerDialogFragment() { val lgsEnabled = constraintChecker.isLgsAllowed(Constraint(true)) val apsMode = sp.getString(R.string.key_aps_mode, "open") if (profileFunction.isProfileValid("LoopDialogUpdateGUI")) { - if (loopPlugin.isEnabled(PluginType.LOOP)) { + if (loopPlugin.isEnabled()) { when { closedLoopAllowed.value() -> { binding.overviewCloseloop.visibility = (apsMode != "closed").toVisibility() @@ -167,6 +170,12 @@ class LoopDialog : DaggerDialogFragment() { binding.overviewOpenloop.visibility = (apsMode != "open").toVisibility() } + apsMode == "open" -> { + binding.overviewCloseloop.visibility = View.VISIBLE + binding.overviewLgsloop.visibility = View.GONE + binding.overviewOpenloop.visibility = View.GONE + } + lgsEnabled.value() -> { binding.overviewCloseloop.visibility = View.GONE binding.overviewLgsloop.visibility = (apsMode != "lgs").toVisibility() @@ -199,19 +208,21 @@ class LoopDialog : DaggerDialogFragment() { binding.overviewEnable.visibility = View.VISIBLE binding.overviewDisable.visibility = View.GONE binding.overviewSuspend.visibility = View.GONE + if (!loopPlugin.isDisconnected) { + binding.overviewPumpHeader.text = resourceHelper.gs(R.string.disconnectpump) + binding.overviewDisconnect15m.visibility = + pumpDescription.tempDurationStep15mAllowed.toVisibility() + binding.overviewDisconnect30m.visibility = + pumpDescription.tempDurationStep30mAllowed.toVisibility() + binding.overviewDisconnectButtons.visibility = View.VISIBLE + binding.overviewReconnect.visibility = View.GONE + } else { + binding.overviewPumpHeader.text = resourceHelper.gs(R.string.reconnect) + binding.overviewDisconnectButtons.visibility = View.GONE + binding.overviewReconnect.visibility = View.VISIBLE + } + binding.overviewLoop.visibility = (!loopPlugin.isSuspended && !loopPlugin.isDisconnected).toVisibility() } - if (!loopPlugin.isDisconnected) { - binding.overviewPumpHeader.text = resourceHelper.gs(R.string.disconnectpump) - binding.overviewDisconnect15m.visibility = pumpDescription.tempDurationStep15mAllowed.toVisibility() - binding.overviewDisconnect30m.visibility = pumpDescription.tempDurationStep30mAllowed.toVisibility() - binding.overviewDisconnectButtons.visibility = View.VISIBLE - binding.overviewReconnect.visibility = View.GONE - } else { - binding.overviewPumpHeader.text = resourceHelper.gs(R.string.reconnect) - binding.overviewDisconnectButtons.visibility = View.GONE - binding.overviewReconnect.visibility = View.VISIBLE - } - binding.overviewLoop.visibility = (!loopPlugin.isSuspended && !loopPlugin.isDisconnected).toVisibility() } val profile = profileFunction.getProfile() val profileStore = activePlugin.activeProfileSource.profile diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/MaintenancePlugin.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/MaintenancePlugin.kt index ddbae593fa..c6868b4337 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/MaintenancePlugin.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/maintenance/MaintenancePlugin.kt @@ -73,6 +73,7 @@ class MaintenancePlugin @Inject constructor( val files = logDir.listFiles { _: File?, name: String -> (name.startsWith("AndroidAPS") && name.endsWith(".zip")) } + if (files.isEmpty()) return Arrays.sort(files) { f1: File, f2: File -> f2.name.compareTo(f1.name) } var delFiles = listOf(*files) val amount = sp.getInt(R.string.key_logshipper_amount, keep) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfilePlugin.kt b/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfilePlugin.kt index 2feeab89d8..96a487249e 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfilePlugin.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfilePlugin.kt @@ -410,7 +410,7 @@ class LocalProfilePlugin @Inject constructor( override fun doWork(): Result { val profileJson = dataWorker.pickupJSONObject(inputData.getLong(DataWorker.STORE_KEY, -1)) ?: return Result.failure(workDataOf("Error" to "missing input data")) - if (sp.getBoolean(R.string.key_ns_receive_profile_store, false) || config.NSCLIENT) { + if (sp.getBoolean(R.string.key_ns_receive_profile_store, true) || config.NSCLIENT) { val store = ProfileStore(injector, profileJson, dateUtil) val startDate = store.getStartDate() val lastLocalChange = sp.getLong(R.string.key_local_profile_last_change, 0) diff --git a/app/src/main/res/xml/pref_nsclientinternal.xml b/app/src/main/res/xml/pref_nsclientinternal.xml index 5929db5532..c9dbe2d1e5 100644 --- a/app/src/main/res/xml/pref_nsclientinternal.xml +++ b/app/src/main/res/xml/pref_nsclientinternal.xml @@ -43,7 +43,7 @@ android:title="@string/ns_receive_cgm" /> From 3064fea60d46415408b9c10a44f540d1076f8a0f Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 28 Aug 2021 21:13:30 +0200 Subject: [PATCH 10/10] update exam text --- app/src/main/res/values/exam.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values/exam.xml b/app/src/main/res/values/exam.xml index b5505d5f38..778e865cbf 100644 --- a/app/src/main/res/values/exam.xml +++ b/app/src/main/res/values/exam.xml @@ -132,7 +132,7 @@ Insulin delivery/entry errors What should you do if you received less insulin than the pump history suggests e.g. due to an occlusion, a failed cannula or forgetting to reattach the pump after a shower?  Delete insulin data from Nightscout Careportal to remove it from the pump history. - Compare values in AndroidAPS and pump history. + Compare values in AndroidAPS and pump history (if pump supports this). Bolus a proportion of your calculated ‘missed’ insulin by either syringe/pen or using a prime. Do nothing and allow AndroidAPS to correct any resulting high blood glucose level. Insulin on Board (IOB)