mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
ef3d34c77e
commit
de9af64338
@ -137,8 +137,8 @@ class BookshelfFragment1 : BaseBookshelfFragment(R.layout.fragment_bookshelf),
|
||||
override fun getItemPosition(`object`: Any): Int {
|
||||
val fragment = `object` as BooksFragment
|
||||
val position = fragment.position
|
||||
val group = bookGroups[position]
|
||||
if (fragment.groupId != group.groupId) {
|
||||
val group = bookGroups.getOrNull(position)
|
||||
if (fragment.groupId != group?.groupId) {
|
||||
return POSITION_NONE
|
||||
}
|
||||
return POSITION_UNCHANGED
|
||||
|
Loading…
Reference in New Issue
Block a user