diff --git a/app/src/main/java/com/nextcloud/client/assistant/AsssistantScreen.kt b/app/src/main/java/com/nextcloud/client/assistant/AsssistantScreen.kt index 07a980c7e3..70c85cae91 100644 --- a/app/src/main/java/com/nextcloud/client/assistant/AsssistantScreen.kt +++ b/app/src/main/java/com/nextcloud/client/assistant/AsssistantScreen.kt @@ -73,12 +73,14 @@ fun AssistantScreen(viewModel: AssistantViewModel, activity: Activity) { val pullRefreshState = rememberPullToRefreshState() @Suppress("MagicNumber") - Box(modifier = Modifier.pullToRefresh(isRefreshing, pullRefreshState, onRefresh = { - scope.launch { - delay(1500) - viewModel.fetchTaskList() - } - })) { + Box( + modifier = Modifier.pullToRefresh(isRefreshing, pullRefreshState, onRefresh = { + scope.launch { + delay(1500) + viewModel.fetchTaskList() + } + }) + ) { if (state == AssistantViewModel.State.Loading || isRefreshing) { CenterText(text = stringResource(id = R.string.assistant_screen_loading)) } else { @@ -101,7 +103,10 @@ fun AssistantScreen(viewModel: AssistantViewModel, activity: Activity) { if (isRefreshing) { LinearProgressIndicator(modifier = Modifier.fillMaxWidth()) } else { - LinearProgressIndicator(progress = { pullRefreshState.distanceFraction }, modifier = Modifier.fillMaxWidth()) + LinearProgressIndicator( + progress = { pullRefreshState.distanceFraction }, + modifier = Modifier.fillMaxWidth() + ) } if (selectedTaskType?.name != stringResource(id = R.string.assistant_screen_all_task_type)) {