Fix "Move to top" showing at the most top item in download queue (#7109)
(cherry picked from commit b26daf8824e09922f063db6d6410b78d6281957b)
(cherry picked from commit 054e6b839e)
This commit is contained in:
parent
a575770be0
commit
832107b932
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue