]> git.ktnx.net Git - mobile-ledger.git/commitdiff
set last profile update date in JSON retrieval code
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 7 Mar 2019 03:52:31 +0000 (05:52 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 7 Mar 2019 03:52:31 +0000 (05:52 +0200)
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java

index 35277d6749e5f048c77f6ff62c78b1b0b1d465e3..ab0ab271d69e2cad91eeb50a596d9d3f72a58536 100644 (file)
@@ -430,6 +430,7 @@ public class RetrieveTransactionsTask
                                 progress.setTotal(progress.getProgress());
                                 publishProgress(progress);
                                 db.setTransactionSuccessful();
+                                profile.setLastUpdateStamp();
                                 return true;
                             }
                         }
@@ -445,6 +446,7 @@ public class RetrieveTransactionsTask
 
                     profile.deleteNotPresentTransactions(db);
                     db.setTransactionSuccessful();
+                    profile.setLastUpdateStamp();
                 }
                 finally {
                     db.endTransaction();