import java.nio.charset.StandardCharsets;
import java.text.ParseException;
import java.util.ArrayList;
-import java.util.Date;
import java.util.HashMap;
import java.util.Stack;
import java.util.regex.Matcher;
profile.deleteNotPresentTransactions(db);
db.setTransactionSuccessful();
- Log.d("db", "Updating transaction value stamp");
- Date now = new Date();
- profile.setLongOption(MLDB.OPT_LAST_SCRAPE, now.getTime());
- Data.lastUpdateDate.set(now);
+ profile.setLastUpdateStamp();
return null;
}
import net.ktnx.mobileledger.utils.MLDB;
import java.util.ArrayList;
+import java.util.Date;
import java.util.List;
import java.util.UUID;
public void deleteNotPresentTransactions(SQLiteDatabase db) {
db.execSQL("DELETE FROM transactions WHERE profile=? AND keep = 0", new String[]{uuid});
}
+ public void setLastUpdateStamp() {
+ Log.d("db", "Updating transaction value stamp");
+ Date now = new Date();
+ setLongOption(MLDB.OPT_LAST_SCRAPE, now.getTime());
+ Data.lastUpdateDate.set(now);
+ }
}