From 7e32428dccfe714ce2bad4fc2386c60a35969c21 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 27 Apr 2020 23:15:24 -0400 Subject: [PATCH] Clean out search intents from main activity --- .../kanade/tachiyomi/ui/main/MainActivity.kt | 28 ------------------- 1 file changed, 28 deletions(-) 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 314a344a7b..7524b6fbc5 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 @@ -414,34 +414,6 @@ open class MainActivity : BaseActivity(), DownloadServiceListener { controller?.showSheet() } } - Intent.ACTION_SEARCH, "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) - if (query != null && query.isNotEmpty()) { - if (router.backstackSize > 1) { - router.popToRoot() - } - router.pushController(SourceSearchController(query).withFadeTransaction()) - } - } - INTENT_SEARCH -> { - val query = intent.getStringExtra(INTENT_SEARCH_QUERY) - val filter = intent.getStringExtra(INTENT_SEARCH_FILTER) - if (query != null && query.isNotEmpty()) { - if (router.backstackSize > 1) { - router.popToRoot() - } - router.pushController( - SourceSearchController( - query, - filter - ).withFadeTransaction() - ) - } - } else -> return false } return true