jimdc / TradeTracker

by Advent Fintech LLC
1 stars 0 forks source link

Access database on multiple threads (MainActivity/UserListAdapter and Updaten) causes IllegalStateException #44

Closed jimdc closed 6 years ago

jimdc commented 6 years ago

to add: Allow adding stocks when scanning already. in Updaten, does not use database.use { } wrapper

see https://github.com/Kotlin/anko/issues/436 https://stackoverflow.com/questions/21058293/android-sqlite-attempt-to-re-open-an-already-closed-object

use with Context? getActivity().getWritableDatabse

jimdc commented 6 years ago

resolved with 852797bad17e6bca3c26dc2c1371421c03486ef4