From: Damyan Ivanov Date: Wed, 6 Jan 2021 17:01:51 +0000 (+0200) Subject: new transaction model: add setDate method X-Git-Tag: v0.17.0~222 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=ef331c7ebb615807dddcc21ba6946d0e64230c94;p=mobile-ledger.git new transaction model: add setDate method --- 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 8660c215..b647eb85 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 @@ -1,5 +1,5 @@ /* - * Copyright © 2020 Damyan Ivanov. + * Copyright © 2021 Damyan Ivanov. * This file is part of MoLe. * MoLe is free software: you can distribute it and/or modify it * under the term of the GNU General Public License as published by @@ -88,6 +88,9 @@ public class NewTransactionModel extends ViewModel { public SimpleDate getDate() { return header.date.getValue(); } + public void setDate(SimpleDate date) { + header.date.setValue(date); + } public String getDescription() { return header.description.getValue(); }