]> git.ktnx.net Git - mobile-ledger.git/commit
NT fragment: bind the view model to the activity
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 26 Nov 2019 22:00:39 +0000 (00:00 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 26 Nov 2019 22:00:39 +0000 (00:00 +0200)
commitb78d85afef509ea029aefe10e179f87a60108218
tree2a20d7be39608ae2c81417388efb9e5f7191999d
parentef4785fab2aeb1d90d62405402dc9914c25ac1bc
NT fragment: bind the view model to the activity

the fragment can be re-created when navigating to the save progress
fragment. when it is re-created the view model instance is re-created too,
losing the unsaved transaction
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionFragment.java