mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-22 14:01:28 +01:00
allow users to launch web search from app search
This commit is contained in:
parent
2b7999cfdc
commit
cec9d408ae
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
package de.jrpie.android.launcher.ui.list.apps
|
||||
|
||||
import android.content.Intent
|
||||
import android.content.SharedPreferences
|
||||
import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
|
@ -86,7 +87,9 @@ class ListFragmentApps : Fragment(), UIObject {
|
|||
|
||||
override fun onQueryTextSubmit(query: String): Boolean {
|
||||
appsRViewAdapter.setSearchString(query)
|
||||
appsRViewAdapter.selectItem(0)
|
||||
//appsRViewAdapter.selectItem(0)
|
||||
val i = Intent(Intent.ACTION_WEB_SEARCH).putExtra("query", query)
|
||||
activity?.startActivity(i)
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue