-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
DataStoreDocumentation dealing with the DataStore, can be for any/all platform(s)Documentation dealing with the DataStore, can be for any/all platform(s)amplify/androidbugSomething is not working on the documentation site.Something is not working on the documentation site.
Description
Page: start/getting-started/integrate/q/integration/android
Feedback:
The Kitlin code on "Update a Todo" section in this page doesn't work with some errors. Please change the code into the following:
Amplify.DataStore.query(Todo::class.java, Todo.NAME.eq("Finish quarterly taxes"),
{ matches ->
if (matches.hasNext()) {
val original = matches.next()
val edited = original.copyOfBuilder()
.name("File quarterly taxes")
.build()
Amplify.DataStore.save(edited,
{ Log.i("Tutorial", "Updated item: ${edited.name}") },
{ Log.e("Tutorial", "Update failed.", it) }
)
}
},
{ Log.e("Tutorial", "Query failed", it) }
)
Metadata
Metadata
Assignees
Labels
DataStoreDocumentation dealing with the DataStore, can be for any/all platform(s)Documentation dealing with the DataStore, can be for any/all platform(s)amplify/androidbugSomething is not working on the documentation site.Something is not working on the documentation site.