From b26daf8824e09922f063db6d6410b78d6281957b Mon Sep 17 00:00:00 2001 From: CVIUS <84634607+CVIUS@users.noreply.github.com> Date: Thu, 12 May 2022 10:35:30 +0800 Subject: [PATCH] Fix "Move to top" showing at the most top item in download queue (#7109) --- .../main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt index 8f46231438..514357d658 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadHolder.kt @@ -89,7 +89,7 @@ class DownloadHolder(private val view: View, val adapter: DownloadAdapter) : view.popupMenu( menuRes = R.menu.download_single, initMenu = { - findItem(R.id.move_to_top).isVisible = bindingAdapterPosition != 0 + findItem(R.id.move_to_top).isVisible = bindingAdapterPosition > 1 findItem(R.id.move_to_bottom).isVisible = bindingAdapterPosition != adapter.itemCount - 1 },