Open seadowg opened 7 months ago
After the work done in https://github.com/getodk/collect/pull/5867, the main focus to get this done is to be able to call StrictMode.noteSlowCall("Accessing readable DB")
in DatabaseConnection
instead of in the database backed repository implementations and have all tests passing.
The goal here now will be to remove the strict
parameter from DatabaseConnected
(always call noteSlowCall
on DB accesses).
It looks like a significant rewrite (replacing InstanceChooserList
most noteably) is required to make any more progress here so let's move it to the next release.
An example was reported here.
Our forms and instances databases should not be accessed the UI thread. We can use
StrictMode.noteSlowCall
in ourDatabaseConnection
(on accessing a writable or readable DB) to detect these in debug builds and instrumented tests.