Fixed typo
This commit is contained in:
parent
5f080c0398
commit
d43e599f74
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue