Skip to content

Commit 3f5cfcf

Browse files
committed
Make APIs to get global search provider public
1 parent 1fa1de5 commit 3f5cfcf

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

api/current.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,6 +3870,7 @@ package android.app {
38703870
}
38713871

38723872
public class SearchManager implements android.content.DialogInterface.OnCancelListener android.content.DialogInterface.OnDismissListener {
3873+
method public android.content.ComponentName getGlobalSearchActivity();
38733874
method public android.app.SearchableInfo getSearchableInfo(android.content.ComponentName);
38743875
method public java.util.List<android.app.SearchableInfo> getSearchablesInGlobalSearch();
38753876
method public deprecated void onCancel(android.content.DialogInterface);
@@ -3893,6 +3894,7 @@ package android.app {
38933894
field public static final java.lang.String INTENT_ACTION_SEARCH_SETTINGS = "android.search.action.SEARCH_SETTINGS";
38943895
field public static final java.lang.String INTENT_ACTION_SEARCH_SETTINGS_CHANGED = "android.search.action.SETTINGS_CHANGED";
38953896
field public static final java.lang.String INTENT_ACTION_WEB_SEARCH_SETTINGS = "android.search.action.WEB_SEARCH_SETTINGS";
3897+
field public static final java.lang.String INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED = "android.search.action.GLOBAL_SEARCH_ACTIVITY_CHANGED";
38963898
field public static final char MENU_KEY = 115; // 0x0073 's'
38973899
field public static final int MENU_KEYCODE = 47; // 0x2f
38983900
field public static final java.lang.String QUERY = "query";

core/java/android/app/SearchManager.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,7 @@ public class SearchManager
395395

396396
/**
397397
* Intent action to be broadcast to inform that the global search provider
398-
* has changed. Normal components will have no need to handle this intent since
399-
* they should be using API methods from this class to access the global search
400-
* activity
401-
*
402-
* @hide
398+
* has changed.
403399
*/
404400
public final static String INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED
405401
= "android.search.action.GLOBAL_SEARCH_ACTIVITY_CHANGED";
@@ -590,8 +586,6 @@ public List<ResolveInfo> getGlobalSearchActivities() {
590586

591587
/**
592588
* Gets the name of the global search activity.
593-
*
594-
* @hide
595589
*/
596590
public ComponentName getGlobalSearchActivity() {
597591
try {

0 commit comments

Comments
 (0)