mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 01:35:09 +01:00
Renamed the double page split methods
so they're not longing conflicting with upstream's page split
This commit is contained in:
parent
45c8bdafd3
commit
652c935062
@ -361,7 +361,7 @@ class PagerPageHolder(
|
|||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.doOnNext { isAnimated ->
|
.doOnNext { isAnimated ->
|
||||||
if (skipExtra) {
|
if (skipExtra) {
|
||||||
onPageSplit()
|
splitDoublePages()
|
||||||
}
|
}
|
||||||
if (!isAnimated) {
|
if (!isAnimated) {
|
||||||
if (viewer.config.readerTheme >= 2) {
|
if (viewer.config.readerTheme >= 2) {
|
||||||
@ -715,9 +715,9 @@ class PagerPageHolder(
|
|||||||
return ByteArrayInputStream(output.toByteArray())
|
return ByteArrayInputStream(output.toByteArray())
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun onPageSplit() {
|
private fun splitDoublePages() {
|
||||||
extraPage ?: return
|
extraPage ?: return
|
||||||
viewer.onPageSplit(page)
|
viewer.splitDoublePages(page)
|
||||||
if (extraPage?.fullPage == true) {
|
if (extraPage?.fullPage == true) {
|
||||||
extraPage = null
|
extraPage = null
|
||||||
}
|
}
|
||||||
|
@ -372,8 +372,8 @@ abstract class PagerViewer(val activity: ReaderActivity) : BaseViewer {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
fun onPageSplit(currentPage: ReaderPage) {
|
fun splitDoublePages(currentPage: ReaderPage) {
|
||||||
adapter.onPageSplit(currentPage)
|
adapter.splitDoublePages(currentPage)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -143,7 +143,7 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
|
|||||||
return POSITION_NONE
|
return POSITION_NONE
|
||||||
}
|
}
|
||||||
|
|
||||||
fun onPageSplit(current: ReaderPage) {
|
fun splitDoublePages(current: ReaderPage) {
|
||||||
val oldCurrent = joinedItems.getOrNull(viewer.pager.currentItem)
|
val oldCurrent = joinedItems.getOrNull(viewer.pager.currentItem)
|
||||||
setJoinedItems(
|
setJoinedItems(
|
||||||
oldCurrent?.second == current ||
|
oldCurrent?.second == current ||
|
||||||
|
Loading…
Reference in New Issue
Block a user