From: Damyan Ivanov Date: Fri, 23 Apr 2021 15:30:01 +0000 (+0000) Subject: Revert "speculatively update last update date before the transactions are stored" X-Git-Tag: v0.18.0~41 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=f85b93085231654f76e4d789d2b3cd667e821043;p=mobile-ledger.git Revert "speculatively update last update date before the transactions are stored" 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 --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java b/app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java index 62b96274..46b8426a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java @@ -17,14 +17,12 @@ 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 java.util.Date; public class TransactionAccumulator { private final ArrayList list = new ArrayList<>(); @@ -67,7 +65,6 @@ public class TransactionAccumulator { public void done() { done = true; model.setDisplayedTransactions(list); - Data.lastUpdateDate.postValue(new Date()); model.setFirstTransactionDate(earliestDate); model.setLastTransactionDate(latestDate); }