mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 19:11:49 +01:00
Add toast when theres no next/previous chapter
This commit is contained in:
parent
2637bcffa5
commit
b447b61a3e
@ -468,6 +468,14 @@ class ReaderActivity :
|
||||
if (result) {
|
||||
binding.readerNav.leftChapter.gone()
|
||||
binding.readerNav.leftProgress.visible()
|
||||
} else {
|
||||
toast(
|
||||
if (viewer is R2LPagerViewer) {
|
||||
R.string.theres_no_next_chapter
|
||||
} else {
|
||||
R.string.theres_no_previous_chapter
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@ -483,6 +491,14 @@ class ReaderActivity :
|
||||
if (result) {
|
||||
binding.readerNav.rightChapter.gone()
|
||||
binding.readerNav.rightProgress.visible()
|
||||
} else {
|
||||
toast(
|
||||
if (viewer !is R2LPagerViewer) {
|
||||
R.string.theres_no_next_chapter
|
||||
} else {
|
||||
R.string.theres_no_previous_chapter
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user