From 7f6cf3e4109426164c6fdd11aba0c69622e2353c Mon Sep 17 00:00:00 2001 From: Jeff Hamilton Date: Fri, 17 Sep 2010 17:22:21 -0500 Subject: 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 --- src/com/android/browser/HistoryItem.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/com/android/browser/HistoryItem.java') diff --git a/src/com/android/browser/HistoryItem.java b/src/com/android/browser/HistoryItem.java index 72e1b19e5..b591b03f1 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, -- cgit v1.2.3