From: Damyan Ivanov Date: Thu, 4 Mar 2021 19:41:32 +0000 (+0200) Subject: reset the submittable flag when resetting model state X-Git-Tag: v0.17.0~35 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=b1980d4f39a5382420a1e600a0fe5a79115db498;p=mobile-ledger.git reset the submittable flag when resetting model state --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java index b8380895..249bdd3c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java @@ -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() {