|
|
|
@ -64,17 +64,6 @@ public class BookmarkManager {
@@ -64,17 +64,6 @@ public class BookmarkManager {
|
|
|
|
|
mExecutor.execute(new BookmarkInitializer(context)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Look for bookmark using the url |
|
|
|
|
* |
|
|
|
|
* @param url the lookup url |
|
|
|
|
* @return the bookmark as an {@link HistoryItem} or null |
|
|
|
|
*/ |
|
|
|
|
@Nullable |
|
|
|
|
public HistoryItem findBookmarkForUrl(final String url) { |
|
|
|
|
return mBookmarksMap.get(url); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Initialize the BookmarkManager, it's a one-time operation and will be executed asynchronously. |
|
|
|
|
* When done, mReady flag will been set to true. |
|
|
|
@ -177,6 +166,17 @@ public class BookmarkManager {
@@ -177,6 +166,17 @@ public class BookmarkManager {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Look for bookmark using the url |
|
|
|
|
* |
|
|
|
|
* @param url the lookup url |
|
|
|
|
* @return the bookmark as an {@link HistoryItem} or null |
|
|
|
|
*/ |
|
|
|
|
@Nullable |
|
|
|
|
public HistoryItem findBookmarkForUrl(final String url) { |
|
|
|
|
return mBookmarksMap.get(url); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isBookmark(String url) { |
|
|
|
|
return mBookmarksMap.containsKey(url); |
|
|
|
|
} |
|
|
|
|