]> git.ktnx.net Git - mobile-ledger.git/commit
off-load option setting DB update to the background work queue
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 3 May 2019 15:10:29 +0000 (18:10 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 3 May 2019 15:10:29 +0000 (18:10 +0300)
commit7c4845718e128abb52ec6eaed26940b53e1c5ee8
tree1b6524c462f38170db6e24347a5d2fe16cd25a85
parent5096bf81c3943be09e9d6fc0d2f132dc32cbc354
off-load option setting DB update to the background work queue

such an update may have to wait for the DB to complete any reads, like while
loading transaction data or even transaction data retrieval. that would lead
to UI freeze

delaying the update has no ill effects, since the data is needed only the next
time the app is run
app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java