Skip to content

add: flow in notedao and noterepository - #2

Merged
sufyameher merged 1 commit into
develop-1.0.0from
develop-1.0.1-flow
Aug 1, 2025
Merged

sufyameher merged 1 commit into
develop-1.0.0from
develop-1.0.1-flow

Conversation

@sufyameher

Copy link
Copy Markdown
Owner

No description provided.

import com.example.notesapp.note.NoteRepository
import kotlinx.coroutines.launch

class TrashViewModel(application: Application) : AndroidViewModel(application) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add NoteRepository in constructor

Timber.d("Folder: ${it.folder.name}, Subfolders: ${it.subfolderCount}, Notes: ${it.noteCount}")
}
folderWithInfoAdapter.updateFolders(folders)
binding.tvFolders.visibility = if (folders.isEmpty()) View.GONE else View.VISIBLE

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use extension function

@sufyameher
sufyameher merged commit 2c997f0 into develop-1.0.0 Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants