diff --git a/app/src/main/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskScreen.kt b/app/src/main/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskScreen.kt index 1b96a98a1..ef50627b6 100644 --- a/app/src/main/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskScreen.kt +++ b/app/src/main/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskScreen.kt @@ -115,11 +115,11 @@ private fun AddEditTaskContent( modifier: Modifier = Modifier ) { var isRefreshing by remember { mutableStateOf(false) } - val state = rememberPullToRefreshState() + val refreshingState = rememberPullToRefreshState() if (loading) { PullToRefreshBox( isRefreshing = isRefreshing, - state = state, + state = refreshingState, onRefresh = { /* DO NOTHING */ }, content = { } )