Merge pull request 'fix: check index exists.' (#183) from fix-index into master
Reviewed-on: Louvorg/ReaderForSelfoss-multiplatform#183
This commit is contained in:
commit
39f9505c00
2
.gitignore
vendored
2
.gitignore
vendored
@ -324,3 +324,5 @@ crowdin.properties
|
||||
|
||||
.kotlin/
|
||||
build-cache/
|
||||
|
||||
act
|
||||
|
@ -161,12 +161,14 @@ class ReaderActivity :
|
||||
override fun onPageSelected(position: Int) {
|
||||
super.onPageSelected(position)
|
||||
|
||||
if (allItems[position].starred) {
|
||||
canRemoveFromFavorite()
|
||||
} else {
|
||||
canFavorite()
|
||||
if (!allItems.isNullOrEmpty() && allItems.size >= position) {
|
||||
if (allItems[position].starred) {
|
||||
canRemoveFromFavorite()
|
||||
} else {
|
||||
canFavorite()
|
||||
}
|
||||
readItem(allItems[position])
|
||||
}
|
||||
readItem(allItems[position])
|
||||
}
|
||||
},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user