This commit is contained in:
Benoit Marty 2019-07-09 18:31:04 +02:00
parent f66739491a
commit fe82ad2002
1 changed files with 3 additions and 2 deletions

View File

@ -105,8 +105,9 @@ class DefaultInitialSyncProgressService @Inject constructor() : InitialSyncProgr


} }


inline fun <T> reportSubtask(reporter: DefaultInitialSyncProgressService?, nameRes: Int inline fun <T> reportSubtask(reporter: DefaultInitialSyncProgressService?,
, totalProgress: Int, nameRes: Int,
totalProgress: Int,
parentWeight: Float = 1f, parentWeight: Float = 1f,
block: () -> T): T { block: () -> T): T {
reporter?.startTask(nameRes, totalProgress, parentWeight) reporter?.startTask(nameRes, totalProgress, parentWeight)