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) { private fun loadAll(from: String) {
updateDate() updateDate()
Thread { Thread {
overviewData.prepareBasalData(from) overviewData.prepareBgData("$from")
overviewData.prepareTemporaryTargetData(from)
overviewData.prepareTreatmentsData(from) overviewData.prepareTreatmentsData(from)
rxBus.send(EventRefreshOverview("loadAll_$from"))
overviewData.prepareTemporaryTargetData(from)
rxBus.send(EventRefreshOverview("loadAll_$from"))
overviewData.prepareBasalData(from)
rxBus.send(EventRefreshOverview(from)) rxBus.send(EventRefreshOverview(from))
aapsLogger.debug(LTag.UI, "loadAll $from finished") aapsLogger.debug(LTag.UI, "loadAll $from finished")
runCalculation(from) runCalculation(from)