From: Damyan Ivanov Date: Thu, 14 May 2020 10:38:09 +0000 (+0300) Subject: drop extra item type enforcement when removing transaction comment observer X-Git-Tag: v0.13.0~2 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=6ca003394e24fb1b47cdaa2ca31679ec6da88af0;p=mobile-ledger.git drop extra item type enforcement when removing transaction comment observer leads to crashes and such a check is not present for the other observers --- 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 1c69656a..03887c19 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 @@ -408,7 +408,6 @@ public class NewTransactionModel extends ViewModel { this.comment.observe(owner, observer); } void stopObservingTransactionComment(@NonNull Observer observer) { - ensureType(ItemType.generalData); this.comment.removeObserver(observer); } public LedgerTransactionAccount getAccount() {