X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Ftransaction_list%2FTransactionListLastUpdateRowHolder.java;fp=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Ftransaction_list%2FTransactionListLastUpdateRowHolder.java;h=0d0d3d3fb637bbf29217a6cd9f84d0fbb416a826;hp=0000000000000000000000000000000000000000;hb=0b96f4968cd5c0b36474b94b94ec6dcf6699f60c;hpb=3c459e59ba3ac6082d65984359fcb6276965de4d diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListLastUpdateRowHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListLastUpdateRowHolder.java new file mode 100644 index 00000000..0d0d3d3f --- /dev/null +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListLastUpdateRowHolder.java @@ -0,0 +1,35 @@ +/* + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your opinion), any later version. + * + * MoLe is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License terms for details. + * + * You should have received a copy of the GNU General Public License + * along with MoLe. If not, see . + */ + +package net.ktnx.mobileledger.ui.transaction_list; + +import net.ktnx.mobileledger.databinding.LastUpdateLayoutBinding; +import net.ktnx.mobileledger.model.Data; + +class TransactionListLastUpdateRowHolder extends TransactionRowHolderBase { + private final LastUpdateLayoutBinding b; + TransactionListLastUpdateRowHolder(LastUpdateLayoutBinding binding) { + super(binding.getRoot()); + b = binding; + } + void setLastUpdateText(String text) { + b.lastUpdateText.setText(text); + } + public void bind() { + b.lastUpdateText.setText(Data.lastTransactionsUpdateText.getValue()); + } +}