Open websearch search action in new task
This commit is contained in:
parent
0bf395e81f
commit
252eea1766
@ -16,6 +16,7 @@ data class WebsearchAction(
|
||||
override fun start(context: Context) {
|
||||
val intent = Intent(Intent.ACTION_WEB_SEARCH).apply {
|
||||
putExtra(SearchManager.QUERY, query)
|
||||
flags = Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
}
|
||||
context.tryStartActivity(intent)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user