This reverts commit
bae2aa9e
the code in question is run every time the transaction list is filtered
or updated. when the transaction list is updated it is OK to lie a bit,
but when the list is just filtered the timestamp of the data does not
change
package net.ktnx.mobileledger.async;
package net.ktnx.mobileledger.async;
-import net.ktnx.mobileledger.model.Data;
import net.ktnx.mobileledger.model.LedgerTransaction;
import net.ktnx.mobileledger.model.TransactionListItem;
import net.ktnx.mobileledger.ui.MainModel;
import net.ktnx.mobileledger.utils.SimpleDate;
import java.util.ArrayList;
import net.ktnx.mobileledger.model.LedgerTransaction;
import net.ktnx.mobileledger.model.TransactionListItem;
import net.ktnx.mobileledger.ui.MainModel;
import net.ktnx.mobileledger.utils.SimpleDate;
import java.util.ArrayList;
public class TransactionAccumulator {
private final ArrayList<TransactionListItem> list = new ArrayList<>();
public class TransactionAccumulator {
private final ArrayList<TransactionListItem> list = new ArrayList<>();
public void done() {
done = true;
model.setDisplayedTransactions(list);
public void done() {
done = true;
model.setDisplayedTransactions(list);
- Data.lastUpdateDate.postValue(new Date());
model.setFirstTransactionDate(earliestDate);
model.setLastTransactionDate(latestDate);
}
model.setFirstTransactionDate(earliestDate);
model.setLastTransactionDate(latestDate);
}