Android添加书签(二)(11)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-26 22:12 点击:次
* Create a new BrowserBookmarksAdapter.
*
* @param b
* BrowserBookmarksPage that instantiated this. Necessary so it
* will adjust its focus appropriately after a search.
*/
public BookmarkAdapter(Bookmarker b, String curPage) {
this(b, curPage, false);
}
/**
* Create a new BrowserBookmarksAdapter.
*
* @param b
* BrowserBookmarksPage that instantiated this. Necessary so it
* will adjust its focus appropriately after a search.
*/
public BookmarkAdapter(Bookmarker b, String curPage, boolean createShortcut) {
mDataValid = false;
mBookmarker = b;
mContentResolver = b.getContentResolver();
mChangeObserver = new ChangeObserver();
mDataSetObserver = new MyDataSetObserver();
// FIXME: Should have a default sort order that the user selects.
search();
// FIXME: This requires another query of the database after the
// initial search(null). Can we optimize this?
Browser.requestAllIcons(mContentResolver,
Browser.BookmarkColumns.FAVICON + " is NULL AND "
+ Browser.BookmarkColumns.BOOKMARK + " == 1",
mIconReceiver);
}
public void initialiseAllRows() {
int processed = 0;
// ensures each row has a created time
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>