From: Damyan Ivanov Date: Sun, 17 Nov 2019 17:12:13 +0000 (+0200) Subject: NewTransactionModel/Item: initialize amount hint on creation X-Git-Tag: v0.11.0~61 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=39d140962014ef048f0fb6b7ed6ac2ea69ac1fa8;p=mobile-ledger.git NewTransactionModel/Item: initialize amount hint on creation fixes "ghost" hints --- 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 66031354..da008d56 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 @@ -252,7 +252,7 @@ public class NewTransactionModel extends ViewModel { private MutableLiveData date = new MutableLiveData<>(); private MutableLiveData description = new MutableLiveData<>(); private LedgerTransactionAccount account; - private MutableLiveData amountHint = new MutableLiveData<>(); + private MutableLiveData amountHint = new MutableLiveData<>(null); private NewTransactionModel model; private MutableLiveData editable = new MutableLiveData<>(true); public Item(NewTransactionModel model) {