I try to update an object with:
<code> fun checkEmbeddedPicture() {
realm.writeBlocking {
findLatest(this@FeedMedia)?.let {
it.file_url = "new/file/location"
}
}
Log.d(TAG, file_url)
}
</code>
<code> fun checkEmbeddedPicture() {
realm.writeBlocking {
findLatest(this@FeedMedia)?.let {
it.file_url = "new/file/location"
}
}
Log.d(TAG, file_url)
}
</code>
fun checkEmbeddedPicture() {
realm.writeBlocking {
findLatest(this@FeedMedia)?.let {
it.file_url = "new/file/location"
}
}
Log.d(TAG, file_url)
}
I presume the object is updated in the DB, but the Log statement shows the version in memory is not updated. How can I update the in-memory version of the object?