Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clear and instantiate the app with some values? #1

Open
cyril-tl opened this issue Dec 6, 2022 · 0 comments
Open

How to clear and instantiate the app with some values? #1

cyril-tl opened this issue Dec 6, 2022 · 0 comments

Comments

@cyril-tl
Copy link

cyril-tl commented Dec 6, 2022

I would like to test your app with a few values created on the first launch.

I added this to NotesActivity.kt > onCreate()
` lifecycleScope.launch {

        noteDatabase.addNote(Note(Date(), "note0"))
        noteDatabase.addNote(Note(Date(), "note1"))
        noteDatabase.addNote(Note(Date(), "note2"))
        noteDatabase.addNote(Note(Date(), "note3"))
        noteDatabase.addNote(Note(Date(), "note4"))
        noteDatabase.addNote(Note(Date(), "note5"))
        noteDatabase.addNote(Note(Date(), "note6"))
        noteDatabase.addNote(Note(Date(), "note7"))
        noteDatabase.addNote(Note(Date(), "note8"))

    }

`

But how can I clear the values?

Anyway, great work!

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

No branches or pull requests

1 participant