]> git.ktnx.net Git - mobile-ledger.git/commit
drop 'synchronized' modifier for getDatabase
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 24 Mar 2019 17:11:48 +0000 (19:11 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 25 Mar 2019 06:17:36 +0000 (06:17 +0000)
commitc63db65ac315e371325031c90b098bab48661e2d
tree08c2b151ffe9bc7798289a719eed31e361f78139
parent7165b89c8ff2b9d8f69e02354197127ec27a4a47
drop 'synchronized' modifier for getDatabase

it was necessary to guarantee that no two connections were created because
the connection is created in getDatabase

by moving the connection creatin to the init() a high profile method
(getDatabase) gets faster. init() is called only once anyway
app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java