]> git.ktnx.net Git - mobile-ledger.git/commitdiff
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 54867e4da3321cb490fa6f8a2b334649a4066d2e..443c21f911ff310681c683a60fdd744e77a95c5f 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) {