]> git.ktnx.net Git - mobile-ledger.git/commitdiff
reset the submittable flag when resetting model state
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 4 Mar 2021 19:41:32 +0000 (21:41 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 4 Mar 2021 19:41:32 +0000 (21:41 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java

index b8380895917a589843d002f424784c833ce5aa26..249bdd3c6223158b141d3db574e17150a91cc3f6 100644 (file)
@@ -176,6 +176,7 @@ public class NewTransactionModel extends ViewModel {
         list.add(new TransactionAccount(""));
         list.add(new TransactionAccount(""));
         noteFocusChanged(0, FocusedElement.Description);
+        isSubmittable.setValue(false);
         setItemsWithoutSubmittableChecks(list);
     }
     boolean accountsInInitialState() {