diff options
author | Jeff Hamilton <jham@android.com> | 2010-09-17 17:22:21 -0500 |
---|---|---|
committer | Jeff Hamilton <jham@android.com> | 2010-09-17 17:22:21 -0500 |
commit | 7f6cf3e4109426164c6fdd11aba0c69622e2353c (patch) | |
tree | 90afa1c1c7c9a764b9bb8cba73cac53d2660cb90 /src/com/android/browser/HistoryItem.java | |
parent | db90aa83e0d99212af3ee063360cdaf4cdb61e94 (diff) | |
download | android_packages_apps_Gello-7f6cf3e4109426164c6fdd11aba0c69622e2353c.tar.gz android_packages_apps_Gello-7f6cf3e4109426164c6fdd11aba0c69622e2353c.tar.bz2 android_packages_apps_Gello-7f6cf3e4109426164c6fdd11aba0c69622e2353c.zip |
Add bookmarks to the current account.
Make sure to stuff newly created bookmarks
in the currently active account so that
they show up in the bookmarks UI and will
get synced properly.
Change-Id: I5677ddb8480957bc209d79cc41f7df02221ef66d
Diffstat (limited to 'src/com/android/browser/HistoryItem.java')
-rw-r--r-- | src/com/android/browser/HistoryItem.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/android/browser/HistoryItem.java b/src/com/android/browser/HistoryItem.java index 72e1b19e..b591b03f 100644 --- a/src/com/android/browser/HistoryItem.java +++ b/src/com/android/browser/HistoryItem.java @@ -18,12 +18,8 @@ package com.android.browser; import android.content.Context; -import android.graphics.Bitmap; -import android.provider.Browser; import android.view.View; import android.widget.CompoundButton; -import android.widget.ImageView; -import android.widget.TextView; /** * Layout representing a history item in the classic history viewer. @@ -45,8 +41,7 @@ import android.widget.TextView; public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { - Bookmarks.addBookmark(mContext, - mContext.getContentResolver(), mUrl, getName(), null, true); + Bookmarks.addBookmark(mContext, true, mUrl, getName(), null, true); LogTag.logBookmarkAdded(mUrl, "history"); } else { Bookmarks.removeFromBookmarks(mContext, |