From b1980d4f39a5382420a1e600a0fe5a79115db498 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 4 Mar 2021 21:41:32 +0200 Subject: [PATCH] reset the submittable flag when resetting model state --- .../mobileledger/ui/new_transaction/NewTransactionModel.java | 1 + 1 file changed, 1 insertion(+) 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() { -- 2.39.5