From 13330aef1e282807861480972e59da59b71ba15d Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 3 Oct 2021 12:16:47 +0200 Subject: [PATCH] fix wrong scheduler --- .../androidaps/plugins/general/overview/OverviewPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewPlugin.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewPlugin.kt index 003dc89440..9557cf8e4b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewPlugin.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewPlugin.kt @@ -90,7 +90,7 @@ class OverviewPlugin @Inject constructor( }, fabricPrivacy::logException) disposable += rxBus .toObservable(EventIobCalculationProgress::class.java) - .observeOn(aapsSchedulers.main) + .observeOn(aapsSchedulers.io) .subscribe({ overviewData.calcProgress = it.progress; overviewBus.send(EventUpdateOverview("EventIobCalculationProgress", OverviewData.Property.CALC_PROGRESS)) }, fabricPrivacy::logException) disposable += rxBus .toObservable(EventTempBasalChange::class.java)