]> git.ktnx.net Git - mobile-ledger.git/commitdiff
speculatively update last update date while the transactions are stored
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 23 Apr 2021 15:34:24 +0000 (15:34 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 23 Apr 2021 15:34:24 +0000 (15:34 +0000)
this a white lie, because the displayed list is the new one, retrieved
at the given time

this fixes the previous attempt

app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java

index 9636208b65a2446787383307ce4efb9ffc371a51..a9517e1ce13e2c6eafb1cc23406cce416f57dda1 100644 (file)
@@ -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) {