From a150bf2f7682cf6d1e6b9a933dc9416e8923855d Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 23 Apr 2021 15:34:24 +0000 Subject: [PATCH] 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 --- .../net/ktnx/mobileledger/async/RetrieveTransactionsTask.java | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.39.5