Remove globalSearch argument from triggerSearch()
API council says:
"In reviewing the new triggerSearch API, we are concerned that
applications could use the option to perform a global search to spam
the user with frequent searches. We would like the global search
option to be removed for now (not just hidden, but removed from the
internal IPC API so that nobody can find this and abuse it). The rest
of the API should be fine as long as it is restricted to local
searches."
Fixes http://b/editIssue?id=2158785
Change-Id: Ie69a9c0ab6373cc4427aab50606885bdede40585
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java
index 9095ec9..49ebce3 100644
--- a/core/java/android/app/Activity.java
+++ b/core/java/android/app/Activity.java
@@ -2619,14 +2619,10 @@
* context here, in order to improve quality or specificity of its own
* searches. This data will be returned with SEARCH intent(s). Null if
* no extra data is required.
- * @param globalSearch If false, this will only launch the search that has been specifically
- * defined by the application (which is usually defined as a local search). If no default
- * search is defined in the current application or activity, no search will be launched.
- * If true, this will always launch a platform-global (e.g. web-based) search instead.
*/
- public void triggerSearch(String query, Bundle appSearchData, boolean globalSearch) {
+ public void triggerSearch(String query, Bundle appSearchData) {
ensureSearchManager();
- mSearchManager.triggerSearch(query, getComponentName(), appSearchData, globalSearch);
+ mSearchManager.triggerSearch(query, getComponentName(), appSearchData);
}
/**