1
0
Fork 0

Added support for Intent.ACTION_SEARCH and Intent.ACTION_WEB_SEARCH actions

master
salvatorep 2019-12-29 21:17:56 +00:00 committed by Jeff Boek
parent 56acf0c360
commit ceb155ec5c
2 changed files with 18 additions and 0 deletions

View File

@ -126,6 +126,18 @@
<data android:mimeType="text/plain" />
</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"/>
<intent-filter>
<action android:name="android.intent.action.WEB_SEARCH" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="mozilla.components.feature.pwa.VIEW_PWA" />
<category android:name="android.intent.category.DEFAULT" />
@ -147,6 +159,7 @@
<meta-data
android:name="com.android.systemui.action_assist_icon"
android:resource="@mipmap/ic_launcher" />
</activity>
<activity android:name=".widget.VoiceSearchActivity" />

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/app_name"
android:hint="@string/search_hint" >
</searchable>