optimize history browser

This commit is contained in:
Milos Kozak 2021-10-03 12:04:03 +02:00
parent 29acc3d17f
commit c8f5f4a116

View file

@ -271,9 +271,12 @@ class HistoryBrowseActivity : NoSplashAppCompatActivity() {
private fun loadAll(from: String) {
updateDate()
Thread {
overviewData.prepareBasalData(from)
overviewData.prepareTemporaryTargetData(from)
overviewData.prepareBgData("$from")
overviewData.prepareTreatmentsData(from)
rxBus.send(EventRefreshOverview("loadAll_$from"))
overviewData.prepareTemporaryTargetData(from)
rxBus.send(EventRefreshOverview("loadAll_$from"))
overviewData.prepareBasalData(from)
rxBus.send(EventRefreshOverview(from))
aapsLogger.debug(LTag.UI, "loadAll $from finished")
runCalculation(from)