Hookup search in the UI.
Remove ActionBarView interface and rename MailActionBar
to actionbarview. We needed this for pre v-14 support, but no longer.
Change-Id: I539b6751313e561311921010b03250df632260bc
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 0259a28..6641114 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -33,6 +33,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=".ui.MailActivity" />
<!-- TODO: add a permission on this -->
<activity
android:label="@string/app_name"
@@ -48,6 +51,11 @@
<data android:scheme="content"/>
<data android:mimeType="application/mail-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>
<activity android:name=".compose.ComposeActivity">
<intent-filter>