NSCv3: track changed profile store

This commit is contained in:
Milos Kozak 2023-01-20 17:13:06 +01:00
parent aa9684f621
commit cef547861f

View file

@ -178,6 +178,8 @@ class NSClientV3Plugin @Inject constructor(
nsClientReceiverDelegate.onStatusEvent(ev)
if (ev.isChanged(rh.gs(R.string.key_ns_client_token)) || ev.isChanged(rh.gs(info.nightscout.core.utils.R.string.key_nsclientinternal_url)))
setClient()
if (ev.isChanged(rh.gs(info.nightscout.core.utils.R.string.key_local_profile_last_change)))
delayAndScheduleExecution("PROFILE_CHANGE")
}, fabricPrivacy::logException)
disposable += rxBus
.toObservable(EventAppExit::class.java)