diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index cb1177a70..a758b7cbe 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -43,7 +43,7 @@ android:name=".ui.main.DeepLinkActivity" android:launchMode="singleTask" android:theme="@android:style/Theme.NoDisplay" - android:label="@string/process_text_action_name"> + android:label="@string/action_global_search"> @@ -55,7 +55,7 @@ - + diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt index e9f96b40c..b06385cc5 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/main/MainActivity.kt @@ -241,12 +241,12 @@ class MainActivity : BaseViewBindingActivity() { setSelectedNavItem(R.id.nav_more) router.pushController(RouterTransaction.with(DownloadController())) } - Intent.ACTION_SEARCH, Intent.ACTION_PROCESS_TEXT, "com.google.android.gms.actions.SEARCH_ACTION" -> { + Intent.ACTION_SEARCH, Intent.ACTION_SEND, "com.google.android.gms.actions.SEARCH_ACTION" -> { // If the intent match the "standard" Android search intent // or the Google-specific search intent (triggered by saying or typing "search *query* on *Tachiyomi*" in Google Search/Google Assistant) // Get the search query provided in extras, and if not null, perform a global search with it. - val query = intent.getStringExtra(SearchManager.QUERY) ?: intent.getCharSequenceExtra(Intent.EXTRA_PROCESS_TEXT)?.toString() + val query = intent.getStringExtra(SearchManager.QUERY) ?: intent.getStringExtra(Intent.EXTRA_TEXT) if (query != null && query.isNotEmpty()) { if (router.backstackSize > 1) { router.popToRoot() diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 21d601f33..004a0f139 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -736,7 +736,4 @@ Previous page Next page - - Search in Tachiyomi -