From f50575e1d86035e9328cf0296e1dc09fda70e442 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 17 Nov 2019 19:15:40 +0200 Subject: [PATCH] NewTransaction Item.setEditable: allow to be called for head row too --- .../net/ktnx/mobileledger/ui/activity/NewTransactionModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java index 54867e4d..443c21f9 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java @@ -277,7 +277,7 @@ public class NewTransactionModel extends ViewModel { return model; } public void setEditable(boolean editable) { - ensureType(ItemType.transactionRow); + ensureType(ItemType.generalData, ItemType.transactionRow); this.editable.setValue(editable); } private void ensureType(ItemType type1, ItemType type2) { -- 2.39.5