diff options
author | John Reck <jreck@google.com> | 2010-11-11 17:15:55 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-11-11 17:15:55 -0800 |
commit | 1097e3d7533fda2437da0fb98f6b08c63d9f2b03 (patch) | |
tree | 2eaaa3dc699aa8730034d8f2f6c3996048861a8d /src/com/android/browser/widget | |
parent | e222fe87a6a582b283cbad0f6967e908c4bfe85e (diff) | |
download | packages_apps_Browser-1097e3d7533fda2437da0fb98f6b08c63d9f2b03.zip packages_apps_Browser-1097e3d7533fda2437da0fb98f6b08c63d9f2b03.tar.gz packages_apps_Browser-1097e3d7533fda2437da0fb98f6b08c63d9f2b03.tar.bz2 |
Fixes bookmark sort order
Bug: 3185357
Changes the default sort behavior of bookmarks. If the browser is not
sync'd, then folders are sorted before bookmarks. If the browser is
sync'd, then the user-specified position takes absolute priority.
Change-Id: Ie27938a59714b0cd27c4419a66aab5076df69104
Diffstat (limited to 'src/com/android/browser/widget')
-rw-r--r-- | src/com/android/browser/widget/BookmarkListWidgetService.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/browser/widget/BookmarkListWidgetService.java b/src/com/android/browser/widget/BookmarkListWidgetService.java index 893d3f5..1120536 100644 --- a/src/com/android/browser/widget/BookmarkListWidgetService.java +++ b/src/com/android/browser/widget/BookmarkListWidgetService.java @@ -67,10 +67,6 @@ public class BookmarkListWidgetService extends RemoteViewsService { BrowserContract.Bookmarks.PARENT, BrowserContract.Bookmarks.POSITION}; - // Ordering merged with DEFAULT_BOOKMARK_SORT_ORDER from BrowserProvider2 - private static final String ORDER_BY_CLAUSE = - Bookmarks.IS_FOLDER + " DESC, position ASC, _id ASC"; - private Map<Integer, BookmarkFactory> mFactories; private Handler mUiHandler; private BookmarksObserver mBookmarksObserver; @@ -310,7 +306,7 @@ public class BookmarkListWidgetService extends RemoteViewsService { Cursor c = null; try { c = mContext.getContentResolver().query(uri, PROJECTION, - where, null, ORDER_BY_CLAUSE); + where, null, null); if (c != null) { mBookmarks = new ArrayList<RenderResult>(c.getCount() + 1); if (folder != null) { |