From 6ca003394e24fb1b47cdaa2ca31679ec6da88af0 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 14 May 2020 13:38:09 +0300 Subject: [PATCH] drop extra item type enforcement when removing transaction comment observer leads to crashes and such a check is not present for the other observers --- .../net/ktnx/mobileledger/ui/activity/NewTransactionModel.java | 1 - 1 file changed, 1 deletion(-) 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() { -- 2.39.5