From 2cf4cf6f972d7e0d825105f5293c5fb706444dad Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 15 Dec 2018 19:33:13 +0000 Subject: [PATCH] correctly get the last transaction list update option the default needs to be written as 0L (long) so that the correct method is used --- .../java/net/ktnx/mobileledger/TransactionListActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java b/app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java index fcaf9d5f..497a1d2e 100644 --- a/app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java @@ -69,8 +69,8 @@ public class TransactionListActivity extends AppCompatActivity { throw new RuntimeException("Can't get hold on the transaction list progress bar"); tvLastUpdate = findViewById(R.id.transactions_last_update); { - long last_update = (new MobileLedgerDatabase(this)) - .get_option_value("transaction_list_last_update", 0); + long last_update = dbh.get_option_value("transaction_list_last_update", 0L); + Log.d("transactions", String.format("Last update = %d", last_update)); if (last_update == 0) tvLastUpdate.setText("never"); else { Date date = new Date(last_update); -- 2.39.2