Fix progress bar

This commit is contained in:
Milos Kozak 2022-10-14 08:58:54 +02:00
parent 437bb0d65d
commit 5258b6e6e4

View file

@ -50,7 +50,7 @@ class PrepareTemporaryTargetDataWorker(
?: return Result.failure(workDataOf("Error" to "missing input data")) ?: return Result.failure(workDataOf("Error" to "missing input data"))
rxBus.send(EventIobCalculationProgress(CalculationWorkflow.ProgressData.PREPARE_TEMPORARY_TARGET_DATA, 0, null)) rxBus.send(EventIobCalculationProgress(CalculationWorkflow.ProgressData.PREPARE_TEMPORARY_TARGET_DATA, 0, null))
val profile = profileFunction.getProfile() ?: return Result.failure(workDataOf("Error" to "missing profile")) val profile = profileFunction.getProfile() ?: return Result.success(workDataOf("Error" to "missing profile"))
val units = profileFunction.getUnits() val units = profileFunction.getUnits()
var toTime = data.overviewData.toTime var toTime = data.overviewData.toTime
val targetsSeriesArray: MutableList<DataPoint> = ArrayList() val targetsSeriesArray: MutableList<DataPoint> = ArrayList()