From 9b132e9cb6ad6faffb4364c02f50580c377502fd Mon Sep 17 00:00:00 2001 From: rebelonion <87634197+rebelonion@users.noreply.github.com> Date: Tue, 30 Apr 2024 19:53:07 -0500 Subject: [PATCH] fix: hide image search for manga --- app/src/main/java/ani/dantotsu/media/SearchAdapter.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/ani/dantotsu/media/SearchAdapter.kt b/app/src/main/java/ani/dantotsu/media/SearchAdapter.kt index a47a495ba6..52b78f6420 100644 --- a/app/src/main/java/ani/dantotsu/media/SearchAdapter.kt +++ b/app/src/main/java/ani/dantotsu/media/SearchAdapter.kt @@ -177,6 +177,9 @@ class SearchAdapter(private val activity: SearchActivity, private val type: Stri popupMenu.show() true } + if (activity.result.type != "ANIME") { + binding.searchByImage.visibility = View.GONE + } binding.searchByImage.setOnClickListener { activity.startActivity(Intent(activity, ImageSearchActivity::class.java)) }