update updateCategory's parameter name

This commit is contained in:
Jays2Kings 2022-04-29 19:07:52 -04:00
parent 9b2c89c859
commit 790ab499f9
2 changed files with 3 additions and 3 deletions

View file

@ -280,7 +280,7 @@ class LibraryCategoryAdapter(val controller: LibraryController) :
fun startReading(position: Int, view: View?)
fun onItemReleased(position: Int)
fun canDrag(): Boolean
fun updateCategory(catId: Int): Boolean
fun updateCategory(position: Int): Boolean
fun sortCategory(catId: Int, sortBy: Char)
fun selectAll(position: Int)
fun allSelected(position: Int): Boolean

View file

@ -1569,8 +1569,8 @@ class LibraryController(
}
}
override fun updateCategory(catId: Int): Boolean {
val category = (adapter.getItem(catId) as? LibraryHeaderItem)?.category ?: return false
override fun updateCategory(position: Int): Boolean {
val category = (adapter.getItem(position) as? LibraryHeaderItem)?.category ?: return false
val inQueue = LibraryUpdateService.categoryInQueue(category.id)
snack?.dismiss()
snack = view?.snack(