Bug 1415656 - Fix android serializing dateAdded as a string in sync bookmark records r?Grisha
MozReview-Commit-ID: 1u9DeVvYwjY
--- a/mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/domain/BookmarkRecord.java
+++ b/mobile/android/services/src/main/java/org/mozilla/gecko/sync/repositories/domain/BookmarkRecord.java
@@ -280,17 +280,17 @@ public class BookmarkRecord extends Reco
// This field is marked as nullable, so we're careful when unboxing it. However, we do not expect
// it to be null at this point, since it was constructed from our DB cursor which will always have
// a `created` timestamp.
// However, very old bookmarks that didn't have a corresponding history item might not have a
// creation date. `created` is not a NOT NULL field in the bookmarks table. Either way, it pays
// to be cautious here.
if (this.dateAdded != null) {
- putPayload(payload, "dateAdded", Long.toString(this.dateAdded));
+ payload.put("dateAdded", this.dateAdded);
}
if (isFolder()) {
payload.put("children", this.children);
return;
}
// bookmark, microsummary, query.