From: Damyan Ivanov Date: Fri, 23 Apr 2021 15:34:24 +0000 (+0000) Subject: speculatively update last update date while the transactions are stored X-Git-Tag: v0.18.0~40 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=a150bf2f7682cf6d1e6b9a933dc9416e8923855d;p=mobile-ledger.git speculatively update last update date while the transactions are stored this a white lie, because the displayed list is the new one, retrieved at the given time this fixes the previous attempt --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java index 9636208b..a9517e1c 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java @@ -574,6 +574,8 @@ public class RetrieveTransactionsTask extends new AccountAndTransactionListSaver(accounts, transactions).start(); + Data.lastUpdateDate.postValue(new Date()); + return new Result(null); } catch (MalformedURLException e) {