Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 committed Mar 2, 2024
1 parent 5f080c0 commit d43e599
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/kotlin/cn/super12138/todo/logic/Repository.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object Repository {
* 获取全部未完成的待办
* @return List<ToDoRoom>
*/
suspend fun getAllUncomplete(): List<ToDoRoom> {
suspend fun getAllIncomplete(): List<ToDoRoom> {
return withContext(Dispatchers.IO) {
todoDao.getAllUnfinished()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ToDoFragmentViewModel : ViewModel() {

private fun loadToDos() {
viewModelScope.launch {
val todos = Repository.getAllUncomplete()
val todos = Repository.getAllIncomplete()
var count = 0
for (todo in todos) {
todoList.add(ToDo(todo.uuid, todo.state, todo.content, todo.subject))
Expand Down

0 comments on commit d43e599

Please sign in to comment.