]> git.ktnx.net Git - mobile-ledger.git/commitdiff
NewTransactionModel/Item: initialize amount hint on creation
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 Nov 2019 17:12:13 +0000 (19:12 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 Nov 2019 17:12:38 +0000 (19:12 +0200)
fixes "ghost" hints

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

index 66031354141a0aaee54ab08feef8d2e599806f48..da008d56dba30336b8abc50fceb087c38a73158b 100644 (file)
@@ -252,7 +252,7 @@ public class NewTransactionModel extends ViewModel {
         private MutableLiveData<Date> date = new MutableLiveData<>();
         private MutableLiveData<String> description = new MutableLiveData<>();
         private LedgerTransactionAccount account;
-        private MutableLiveData<String> amountHint = new MutableLiveData<>();
+        private MutableLiveData<String> amountHint = new MutableLiveData<>(null);
         private NewTransactionModel model;
         private MutableLiveData<Boolean> editable = new MutableLiveData<>(true);
         public Item(NewTransactionModel model) {