Merge pull request 'fix: check index exists.' (#183) from fix-index into master
All checks were successful
Check master code / build (push) Successful in 8m3s
All checks were successful
Check master code / build (push) Successful in 8m3s
Reviewed-on: #183
This commit is contained in:
commit
39f9505c00
2
.gitignore
vendored
2
.gitignore
vendored
@ -324,3 +324,5 @@ crowdin.properties
|
|||||||
|
|
||||||
.kotlin/
|
.kotlin/
|
||||||
build-cache/
|
build-cache/
|
||||||
|
|
||||||
|
act
|
||||||
|
@ -161,6 +161,7 @@ class ReaderActivity :
|
|||||||
override fun onPageSelected(position: Int) {
|
override fun onPageSelected(position: Int) {
|
||||||
super.onPageSelected(position)
|
super.onPageSelected(position)
|
||||||
|
|
||||||
|
if (!allItems.isNullOrEmpty() && allItems.size >= position) {
|
||||||
if (allItems[position].starred) {
|
if (allItems[position].starred) {
|
||||||
canRemoveFromFavorite()
|
canRemoveFromFavorite()
|
||||||
} else {
|
} else {
|
||||||
@ -168,6 +169,7 @@ class ReaderActivity :
|
|||||||
}
|
}
|
||||||
readItem(allItems[position])
|
readItem(allItems[position])
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user