diff options
author | Leon Clarke <leonclarke@google.com> | 2009-09-29 18:35:13 +0100 |
---|---|---|
committer | Leon Clarke <leonclarke@google.com> | 2009-09-30 10:10:05 +0100 |
commit | cb6cc864e53f7d916622daf3b2cec133b36d6a55 (patch) | |
tree | 5ecd2725418097094ebeadccb9c372cee7f58d92 /src/com/android | |
parent | ab1fc3ba06e40b64910406ba848de212401e6c34 (diff) | |
download | packages_apps_Browser-cb6cc864e53f7d916622daf3b2cec133b36d6a55.zip packages_apps_Browser-cb6cc864e53f7d916622daf3b2cec133b36d6a55.tar.gz packages_apps_Browser-cb6cc864e53f7d916622daf3b2cec133b36d6a55.tar.bz2 |
Link coloring - do db lookup in new thread
Typo
(cherry picked from commit ccfb951aa11cfdd7ec8ac97e6003193a1a1d7d5b)
Conflicts:
src/com/android/browser/BrowserActivity.java
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/browser/BrowserActivity.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 6797841..1954dad 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java @@ -113,6 +113,7 @@ import android.webkit.HttpAuthHandler; import android.webkit.PluginManager; import android.webkit.SslErrorHandler; import android.webkit.URLUtil; +import android.webkit.ValueCallback; import android.webkit.WebChromeClient; import android.webkit.WebChromeClient.CustomViewCallback; import android.webkit.WebHistoryItem; @@ -3495,6 +3496,25 @@ public class BrowserActivity extends Activity } return mVideoProgressView; } + + /** + * Deliver a list of already-visited URLs + * @hide pending API Council approval + */ + @Override + public void getVisitedHistory(final ValueCallback<String[]> callback) { + AsyncTask<Void, Void, String[]> task = new AsyncTask<Void, Void, String[]>() { + public String[] doInBackground(Void... unused) { + return Browser.getVisitedHistory(getContentResolver()); + } + + public void onPostExecute(String[] result) { + callback.onReceiveValue(result); + + }; + }; + task.execute(); + }; }; /** |