]> git.ktnx.net Git - mobile-ledger.git/commitdiff
asynchronous profile initialisation
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 11 Apr 2021 20:44:52 +0000 (20:44 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 11 Apr 2021 20:44:52 +0000 (20:44 +0000)
the problem here was that the startup profile is read from the DB,
synchronously, and all DB operations need to happen via Room off the
main thread

since at activity startup only the theme is needed, that, and the startup
profile ID can be stored in the android preferences. actual loading of
profile and further data can be done after the theme is setup, in the
background, via Room


No differences found