diff options
author | Tom Taylor <tomtaylor@google.com> | 2009-10-27 12:07:11 -0700 |
---|---|---|
committer | Tom Taylor <tomtaylor@google.com> | 2009-10-27 12:07:11 -0700 |
commit | 8447aa1d84a469e8938b53a60b0763633b08ae98 (patch) | |
tree | 7eee600592a565cf3651043497353ad948f37c73 /res/xml | |
parent | 5467f0f860d4fb32ac4d0b230e9c21f236e46e9b (diff) | |
download | packages_apps_Mms-8447aa1d84a469e8938b53a60b0763633b08ae98.zip packages_apps_Mms-8447aa1d84a469e8938b53a60b0763633b08ae98.tar.gz packages_apps_Mms-8447aa1d84a469e8938b53a60b0763633b08ae98.tar.bz2 |
Add search history
Remember the previous Messaging searches and use them as suggestions
in future searches. Add a pref to settings to allow the user to
clear the search history. Fixes bug 2215776.
Diffstat (limited to 'res/xml')
-rw-r--r-- | res/xml/preferences.xml | 3 | ||||
-rw-r--r-- | res/xml/searchable.xml | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 881fdb5..e8ead34 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -20,6 +20,9 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="@string/pref_sms_storage_title" android:key="pref_key_storage_settings"> + <Preference android:key="pref_key_mms_clear_history" + android:title="@string/pref_mms_clear_search_history_title" + android:summary="@string/pref_mms_clear_search_history_summary" /> <CheckBoxPreference android:defaultValue="false" android:key="pref_key_auto_delete" android:summary="@string/pref_summary_auto_delete" diff --git a/res/xml/searchable.xml b/res/xml/searchable.xml index b86007d..24e32c1 100644 --- a/res/xml/searchable.xml +++ b/res/xml/searchable.xml @@ -20,4 +20,8 @@ <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:label="@string/search_label" android:hint="@string/search_hint" + + android:searchSuggestAuthority="com.android.mms.SuggestionsProvider" + android:searchSuggestSelection="query LIKE ?" + android:searchSuggestIntentAction="android.intent.action.SEARCH" /> |