Fixed
Status Update
Comments
se...@google.com <se...@google.com>
[Deleted User] <[Deleted User]> #2
Is there any updates? This is a big problem!
ko...@gmail.com <ko...@gmail.com> #3
Hi there - could you provide more context on the issue & a sample project to reproduce? Database locked exceptions are quite difficult to pinpoint without a repro project. Thanks!
ap...@google.com <ap...@google.com> #4
Hi. It is reproduceable on some users by using this code:
suspend fun <R> MyDatabase.workaroundWithTransaction(block: suspend TransactionScope<R>.() -> R) {
useWriterConnection {
it.immediateTransaction(block)
}
// TODO: Temporally fix https://issuetracker.google.com/issues/340606803#comment2
// Manually triggers invalidation
invalidationTracker.refreshAsync()
}
Description
Component used: lifecycle lint Version used: 2.3.1 Devices/Android versions reproduced on:
If I remove <String> from initialization, lint doesn't fail. This is not an error.
If I remove private modifier, lint doesn't fail. This is not an error.