Bug 786926 - updateBookmark doesn't set DATE_MODIFIED. r=mfinkle
authorRichard Newman <rnewman@mozilla.com>
Sat, 10 Nov 2012 15:06:50 -0800
changeset 112959 77b4e5ec2e788a9f3b97ec2b0cdfb881255a109d
parent 112958 5c0965b86033386c025041f8981d180d54818265
child 112960 09c4b0d2158166af722863198ee2b598f7f64830
push id23843
push userryanvm@gmail.com
push dateSun, 11 Nov 2012 12:00:20 +0000
treeherdermozilla-central@ba4903cc7523 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs786926
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 786926 - updateBookmark doesn't set DATE_MODIFIED. r=mfinkle
mobile/android/base/db/LocalBrowserDB.java
--- a/mobile/android/base/db/LocalBrowserDB.java
+++ b/mobile/android/base/db/LocalBrowserDB.java
@@ -614,16 +614,17 @@ public class LocalBrowserDB implements B
         cr.registerContentObserver(mHistoryUriWithProfile, false, observer);
     }
 
     public void updateBookmark(ContentResolver cr, int id, String uri, String title, String keyword) {
         ContentValues values = new ContentValues();
         values.put(Browser.BookmarkColumns.TITLE, title);
         values.put(Bookmarks.URL, uri);
         values.put(Bookmarks.KEYWORD, keyword);
+        values.put(Bookmarks.DATE_MODIFIED, System.currentTimeMillis());
 
         cr.update(mBookmarksUriWithProfile,
                   values,
                   Bookmarks._ID + " = ?",
                   new String[] { String.valueOf(id) });
     }
 
     public Bitmap getFaviconForUrl(ContentResolver cr, String uri) {