commit | dffa72f926d051c089981adf52a44d2c933a0de4 | [log] [tgz] |
---|---|---|
author | Mathew Inwood <mathewi@google.com> | Wed Aug 10 12:37:43 2011 +0100 |
committer | Mathew Inwood <mathewi@google.com> | Wed Aug 10 13:09:31 2011 +0100 |
tree | 4fad21512dcb7345f49d86931172202c497305e5 | |
parent | 864a2200268f9a9fc3edfad1f4ac1bab60d4fab1 [diff] [blame] |
Support for calling oncancel on the SearchBox API while preloading. See also: I39a5765d2382f9c88c652d156a4917fd07cea3a4 Bug: 5035246 Change-Id: I7de6b8a718e4190480537412a8235892ee7c7aee
diff --git a/src/com/android/browser/Preloader.java b/src/com/android/browser/Preloader.java index 3d30c96..3273a8c 100644 --- a/src/com/android/browser/Preloader.java +++ b/src/com/android/browser/Preloader.java
@@ -106,6 +106,15 @@ } } + public void cancelSearchBoxPreload(String id) { + PreloaderSession s = getSession(id); + if (s != null) { + s.touch(); // reset timer + PreloadedTabControl tab = s.getTabControl(); + tab.searchBoxCancel(); + } + } + public void discardPreload(String id) { PreloaderSession s = takeSession(id); if (s != null) {