Added search intent handler and Google Search Action, for the global search (#1787)

* Added search intent handler

* Added support for Google Search actions
This commit is contained in:
Amine A
2019-04-03 10:25:52 +02:00
committed by inorichi
parent 77296348a0
commit 8f2878a841
3 changed files with 23 additions and 1 deletions

View File

@@ -28,7 +28,12 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
<action android:name="com.google.android.gms.actions.SEARCH_ACTION"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<meta-data android:name="android.app.searchable" android:resource="@xml/searchable"/>
<!--suppress AndroidDomInspection -->
<meta-data android:name="android.app.shortcuts" android:resource="@xml/shortcuts"/>
</activity>