Bug 744961 - Follow up to put baack accidently removed code. r=lucasr
authorWes Johnston <wjohnston@mozilla.com>
Sat, 20 Oct 2012 09:09:45 -0700
changeset 111020 a79caf5f26b3b3f243e39b59942690d6d4a48b1b
parent 111019 c0977a9122d194de39414881c61e70ec12c06b8e
child 111021 fd91167f3d932d68bcee4dd100e88948650aec01
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewerslucasr
bugs744961
milestone19.0a1
Bug 744961 - Follow up to put baack accidently removed code. r=lucasr
mobile/android/base/db/BrowserProvider.java.in
--- a/mobile/android/base/db/BrowserProvider.java.in
+++ b/mobile/android/base/db/BrowserProvider.java.in
@@ -2132,16 +2132,20 @@ public class BrowserProvider extends Con
     long insertBookmark(Uri uri, ContentValues values) {
         // Generate values if not specified. Don't overwrite
         // if specified by caller.
         long now = System.currentTimeMillis();
         if (!values.containsKey(Bookmarks.DATE_CREATED)) {
             values.put(Bookmarks.DATE_CREATED, now);
         }
 
+        if (!values.containsKey(Bookmarks.DATE_MODIFIED)) {
+            values.put(Bookmarks.DATE_MODIFIED, now);
+        }
+
         if (!values.containsKey(Bookmarks.GUID)) {
             values.put(Bookmarks.GUID, Utils.generateGuid());
         }
 
         if (!values.containsKey(Bookmarks.POSITION)) {
             debug("Inserting bookmark with no position for URI");
             values.put(Bookmarks.POSITION,
                        Long.toString(BrowserContract.Bookmarks.DEFAULT_POSITION));