diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/DefaultInitialSyncProgressService.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/DefaultInitialSyncProgressService.kt index 90d9da1582..f1f8a6e37d 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/DefaultInitialSyncProgressService.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/DefaultInitialSyncProgressService.kt @@ -105,8 +105,9 @@ class DefaultInitialSyncProgressService @Inject constructor() : InitialSyncProgr } -inline fun reportSubtask(reporter: DefaultInitialSyncProgressService?, nameRes: Int - , totalProgress: Int, +inline fun reportSubtask(reporter: DefaultInitialSyncProgressService?, + nameRes: Int, + totalProgress: Int, parentWeight: Float = 1f, block: () -> T): T { reporter?.startTask(nameRes, totalProgress, parentWeight)