From: Damyan Ivanov Date: Sun, 17 Nov 2019 17:15:40 +0000 (+0200) Subject: NewTransaction Item.setEditable: allow to be called for head row too X-Git-Tag: v0.11.0~57 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=f50575e1d86035e9328cf0296e1dc09fda70e442;p=mobile-ledger.git NewTransaction Item.setEditable: allow to be called for head row too --- 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) {