diff options
author | John Reck <jreck@google.com> | 2011-07-27 17:43:43 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-07-28 10:46:28 -0700 |
commit | ad662f04ed7fbd9ce464fed54fd7764290e800e8 (patch) | |
tree | b5619932799f786e4123c486140a095395ac0d45 /src/com/android/browser/provider | |
parent | 56e7068864733e18c666f689c5667d49dcc7b241 (diff) | |
download | packages_apps_Browser-ad662f04ed7fbd9ce464fed54fd7764290e800e8.zip packages_apps_Browser-ad662f04ed7fbd9ce464fed54fd7764290e800e8.tar.gz packages_apps_Browser-ad662f04ed7fbd9ce464fed54fd7764290e800e8.tar.bz2 |
Tests for BP1->BP2 upgrade
Bug: 5087957
Change-Id: Idf70c488baa515222ce8ed905aa5c80a529fd15f
Diffstat (limited to 'src/com/android/browser/provider')
-rw-r--r-- | src/com/android/browser/provider/BrowserProvider2.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index fe7a31b..59bef25 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -471,6 +471,7 @@ public class BrowserProvider2 extends SQLiteContentProvider { BookmarkColumns.TITLE, // 1 BookmarkColumns.FAVICON, // 2 BookmarkColumns.TOUCH_ICON, // 3 + BookmarkColumns.CREATED, // 4 }, BookmarkColumns.BOOKMARK + "!=0", null, null, null, null); if (c != null) { @@ -478,6 +479,7 @@ public class BrowserProvider2 extends SQLiteContentProvider { ContentValues values = new ContentValues(); values.put(Bookmarks.URL, c.getString(0)); values.put(Bookmarks.TITLE, c.getString(1)); + values.put(Bookmarks.DATE_CREATED, c.getInt(4)); values.put(Bookmarks.POSITION, 0); values.put(Bookmarks.PARENT, FIXED_ID_ROOT); ContentValues imageValues = new ContentValues(); @@ -497,7 +499,9 @@ public class BrowserProvider2 extends SQLiteContentProvider { BookmarkColumns.VISITS, // 2 BookmarkColumns.DATE, // 3 BookmarkColumns.CREATED, // 4 - }, null, null, null, null, null); + }, BookmarkColumns.VISITS + " > 0 OR " + + BookmarkColumns.BOOKMARK + " = 0", + null, null, null, null); if (c != null) { while (c.moveToNext()) { ContentValues values = new ContentValues(); |