From fe82ad2002126b8d18f0decd7626284165f9e397 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 9 Jul 2019 18:31:04 +0200 Subject: [PATCH] Format --- .../internal/session/DefaultInitialSyncProgressService.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)