fix passing param to worker

This commit is contained in:
Milos Kozak 2023-01-15 18:48:30 +01:00
parent a640f43847
commit 4b0c86546c

View file

@ -233,6 +233,7 @@ class CalculationWorkflowImpl @Inject constructor(
) )
.then( .then(
OneTimeWorkRequest.Builder(UpdateGraphWorker::class.java) OneTimeWorkRequest.Builder(UpdateGraphWorker::class.java)
.setInputData(Data.Builder().putInt(PASS, CalculationWorkflow.ProgressData.DRAW_FINAL.pass).build())
.build() .build()
) )
.enqueue() .enqueue()
@ -254,6 +255,7 @@ class CalculationWorkflowImpl @Inject constructor(
) )
.then( .then(
OneTimeWorkRequest.Builder(UpdateGraphWorker::class.java) OneTimeWorkRequest.Builder(UpdateGraphWorker::class.java)
.setInputData(Data.Builder().putInt(PASS, CalculationWorkflow.ProgressData.DRAW_FINAL.pass).build())
.build() .build()
) )
.enqueue() .enqueue()