Fixed typo

This commit is contained in:
Super12138 2024-03-02 14:34:51 +08:00
parent 5f080c0398
commit d43e599f74
2 changed files with 2 additions and 2 deletions

View file

@ -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()
}

View file

@ -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))