Show Search settings in Settings app.

The Settings app now shows a "Search settings" item,
if there is an activity that handles the Search settings intent.
This conditionally included settings is handled in the same way
as the sync settings.
This commit is contained in:
Bjorn Bringert
2009-04-27 15:16:25 +01:00
parent d842cee7c2
commit a9d5be1e5f
3 changed files with 23 additions and 0 deletions

View File

@@ -115,6 +115,22 @@
android:targetClass="com.android.settings.LanguageSettings" />
</PreferenceScreen>
<!-- Search.
The settings activity will ensure that this is resolved to an
activity on the system image, otherwise it will remove this
preference.
The intent action is the same as
android.app.SearchManager.INTENT_ACTION_SEARCH_SETTINGS.
-->
<PreferenceScreen
android:title="@string/search_settings"
android:summary="@string/search_settings_summary"
android:key="search_settings">
<intent android:action="android.search.action.SEARCH_SETTINGS" />
</PreferenceScreen>
<!-- About Device -->
<PreferenceScreen