From 7fa9bb35acad5b02baf7d4f8401a318735191203 Mon Sep 17 00:00:00 2001 From: John Reck Date: Thu, 9 Dec 2010 10:57:44 -0800 Subject: Fixes adding 2 entries to history on search Bug: 3175520 Fixes a problem where search terms were being added as history entries. Change-Id: I86e462c53c0992de5cc5eff99b1bfd0a41e5a012 --- src/com/android/browser/IntentHandler.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src') diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index 040af81..0b47668 100644 --- a/src/com/android/browser/IntentHandler.java +++ b/src/com/android/browser/IntentHandler.java @@ -222,19 +222,6 @@ public class IntentHandler { // But currently, we get the user-typed URL from search box as well. url = UrlUtils.fixUrl(url); url = UrlUtils.smartUrlFilter(url); - final ContentResolver cr = mActivity.getContentResolver(); - final String newUrl = url; - if (mTabControl == null - || mTabControl.getCurrentWebView() == null - || !mTabControl.getCurrentWebView().isPrivateBrowsingEnabled()) { - new AsyncTask() { - @Override - protected Void doInBackground(Void... unused) { - Browser.updateVisitedHistory(cr, newUrl, false); - return null; - } - }.execute(); - } String searchSource = "&source=android-" + GOOGLE_SEARCH_SOURCE_SUGGEST + "&"; if (url.contains(searchSource)) { String source = null; @@ -311,7 +298,6 @@ public class IntentHandler { new AsyncTask() { @Override protected Void doInBackground(Void... unused) { - Browser.updateVisitedHistory(cr, newUrl, false); Browser.addSearchUrl(cr, newUrl); return null; } -- cgit v1.1