Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
Resolved merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Simba-97 committed Oct 16, 2022
1 parent 46fc61b commit b21c960
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fun NoteFolderScreen(
) {
val scope = rememberCoroutineScope()
val context = LocalContext.current
val folders = remember { folderViewModel.getFolders(NoteFolder) }.collectAsLazyPagingItems()
val folders = remember { folderViewModel.getFolders() }.collectAsLazyPagingItems()

val data = listOf(
Folder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ class NoteFolderViewModel @Inject constructor(
)
}

fun getFolders(
folderType: FolderType
): Flow<PagingData<NoteFolder>> {
return folderRepository.getAllFolders(folderType).cachedIn(viewModelScope)
fun getFolders(): Flow<PagingData<NoteFolder>> {
return folderRepository.getAllNoteFolders().cachedIn(viewModelScope)
}
}

0 comments on commit b21c960

Please sign in to comment.