mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fixing the rapid changing of the shifter
This commit is contained in:
parent
5f4abb3690
commit
9cb6413bf6
1 changed files with 1 additions and 5 deletions
|
@ -601,11 +601,7 @@ class ReaderActivity : BaseActivity<ReaderActivityBinding>() {
|
|||
|
||||
fun shiftDoublePages(forceShift: Boolean? = null, page: ReaderPage? = null) {
|
||||
(viewer as? PagerViewer)?.let { pViewer ->
|
||||
if (forceShift == pViewer.config.shiftDoublePage &&
|
||||
page != null && page == pViewer.getShiftedPage()
|
||||
) {
|
||||
return
|
||||
}
|
||||
if (forceShift == pViewer.config.shiftDoublePage) return
|
||||
pViewer.config.shiftDoublePage = !pViewer.config.shiftDoublePage
|
||||
viewModel.state.value.viewerChapters?.let {
|
||||
pViewer.updateShifting(page)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue