]> git.ktnx.net Git - mobile-ledger.git/commit
NT: survive swiping away an account when only two accounts are present
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 14 Mar 2020 16:45:00 +0000 (18:45 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 14 Mar 2020 16:45:00 +0000 (18:45 +0200)
commit0804f05abcbb5a6b4300eac6f881cd9d59bb42bd
tree0bd437941d7f7ee56f703c0ed6610ece15ad0f24
parentc0f56397f7912e5a316f19fa36599a4267d9d916
NT: survive swiping away an account when only two accounts are present

the old code ignored the swipe, but did not null it, so the UI was still
left with only one account

the new code accounts for the swipe as usual and lets
viewModel.checkTransactionSubmittable add the now missing account row
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java