]> git.ktnx.net Git - mobile-ledger.git/commitdiff
drop extra item type enforcement when removing transaction comment observer
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 14 May 2020 10:38:09 +0000 (13:38 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 14 May 2020 17:39:53 +0000 (17:39 +0000)
leads to crashes and such a check is not present for the other observers

app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java

index 1c69656a10e630abc6ad0196e050ce953cff1067..03887c19410137857cc6eacbcc1c2e9673b8d47f 100644 (file)
@@ -408,7 +408,6 @@ public class NewTransactionModel extends ViewModel {
             this.comment.observe(owner, observer);
         }
         void stopObservingTransactionComment(@NonNull Observer<? super String> observer) {
-            ensureType(ItemType.generalData);
             this.comment.removeObserver(observer);
         }
         public LedgerTransactionAccount getAccount() {