Connect search activities for email2.
Change-Id: I9462e2a99dc9c37b7a14b9bcc4e3b44c227c131f
This commit is contained in:
parent
6b4cdee94f
commit
d27eed969b
@ -36,6 +36,9 @@
|
||||
android:icon="@mipmap/ic_launcher_mail"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/UnifiedEmailTheme" >
|
||||
<!-- Enable search in all activities -->
|
||||
<meta-data android:name="android.app.default_searchable"
|
||||
android:value="com.android.email2.ui.MailActivityEmail" />
|
||||
<activity
|
||||
android:name=".compose.ComposeActivity"
|
||||
android:label="@string/app_name"
|
||||
@ -114,6 +117,11 @@
|
||||
<data android:scheme="content"/>
|
||||
<data android:mimeType="application/email-ls" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEARCH" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="android.app.searchable" android:resource="@xml/searchable" />
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
|
24
email2/res/xml/searchable.xml
Normal file
24
email2/res/xml/searchable.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Google Inc.
|
||||
Licensed to The Android Open Source Project.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:label="@string/search_title"
|
||||
android:hint="@string/search_hint"
|
||||
android:icon="@drawable/ic_menu_search_holo_light"
|
||||
android:searchSuggestIntentAction="android.intent.action.SEARCH"
|
||||
android:imeOptions="actionSearch"
|
||||
android:searchSuggestSelection="query LIKE ?" />
|
Loading…
Reference in New Issue
Block a user