mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
update updateCategory's parameter name
This commit is contained in:
parent
9b2c89c859
commit
790ab499f9
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue