NewTransaction Item.setEditable: allow to be called for head row too
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 Nov 2019 17:15:40 +0000 (19:15 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 Nov 2019 17:15:40 +0000 (19:15 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java

index 54867e4..443c21f 100644 (file)
@@ -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) {