From ddc643b83ac6848e4e50554d14eb2906d591cb95 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 31 Oct 2023 15:29:02 +0100 Subject: [PATCH] NSC: reset client on preference change --- .../kotlin/app/aaps/plugins/sync/nsclientV3/NSClientV3Plugin.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sync/src/main/kotlin/app/aaps/plugins/sync/nsclientV3/NSClientV3Plugin.kt b/plugins/sync/src/main/kotlin/app/aaps/plugins/sync/nsclientV3/NSClientV3Plugin.kt index 21555b15bb..5bfdb0ed8c 100644 --- a/plugins/sync/src/main/kotlin/app/aaps/plugins/sync/nsclientV3/NSClientV3Plugin.kt +++ b/plugins/sync/src/main/kotlin/app/aaps/plugins/sync/nsclientV3/NSClientV3Plugin.kt @@ -222,6 +222,7 @@ class NSClientV3Plugin @Inject constructor( ev.isChanged(rh.gs(app.aaps.core.utils.R.string.key_ns_announcements)) ) { stopService() + nsAndroidClient = null setClient() } if (ev.isChanged(rh.gs(app.aaps.core.utils.R.string.key_local_profile_last_change)))