diff --git a/app/src/main/java/ani/dantotsu/media/SearchAdapter.kt b/app/src/main/java/ani/dantotsu/media/SearchAdapter.kt index ced90bc4aeb..9327fc770be 100644 --- a/app/src/main/java/ani/dantotsu/media/SearchAdapter.kt +++ b/app/src/main/java/ani/dantotsu/media/SearchAdapter.kt @@ -22,6 +22,7 @@ import ani.dantotsu.R import ani.dantotsu.connections.anilist.Anilist import ani.dantotsu.databinding.ItemChipBinding import ani.dantotsu.databinding.ItemSearchHeaderBinding +import ani.dantotsu.openLinkInBrowser import ani.dantotsu.settings.saving.PrefManager import ani.dantotsu.settings.saving.PrefName import com.google.android.material.checkbox.MaterialCheckBox.* @@ -105,6 +106,9 @@ class SearchAdapter(private val activity: SearchActivity, private val type: Stri onList = listOnly isAdult = adult } + if (binding.searchBarText.text.toString().equals("hentai", true)) { + openLinkInBrowser("https://www.youtube.com/watch?v=GgJrEOo0QoA") + } activity.search() }