}
private void prepare_db() {
- account_list_last_updated = MLDB.get_option_value("last_refresh", (long) 0);
+ account_list_last_updated = MLDB.get_option_value(MLDB.OPT_LAST_REFRESH, (long) 0);
}
private void update_accounts(boolean force) {
Snackbar.make(swiper, err_text, Snackbar.LENGTH_LONG).show();
}
else {
- MLDB.set_option_value("last_refresh", new Date().getTime());
+ MLDB.set_option_value(MLDB.OPT_LAST_REFRESH, new Date().getTime());
update_account_table();
}
}
public static final String ACCOUNTS_TABLE = "accounts";
public static final String DESCRIPTION_HISTORY_TABLE = "description_history";
public static final String OPT_TRANSACTION_LIST_STAMP = "transaction_list_last_update";
+ public static final String OPT_LAST_REFRESH = "last_refresh";
private static MobileLedgerDatabase helperForReading, helperForWriting;
private static Context context;
private static void checkState() {