mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Disable image split for animated images
It's duplicating instead of splitting
This commit is contained in:
parent
67b4e59658
commit
092ebf84f6
3 changed files with 5 additions and 2 deletions
|
@ -3,4 +3,4 @@ package eu.kanade.tachiyomi.ui.reader.model
|
|||
/**
|
||||
* Used as placeholder for split page's second page
|
||||
*/
|
||||
class SplitPage : ReaderItem
|
||||
data object SplitPage : ReaderItem
|
||||
|
|
|
@ -594,11 +594,14 @@ class PagerPageHolder(
|
|||
|
||||
private suspend fun mergeOrSplitPages(imageSource: BufferedSource, imageSource2: BufferedSource?): BufferedSource {
|
||||
if (ImageUtil.isAnimatedAndSupported(imageSource)) {
|
||||
// FIXME: Animated images is duplicating instead of being split
|
||||
if (page.longPage == null) {
|
||||
page.longPage = true
|
||||
/*
|
||||
if (viewer.config.splitPages || imageSource2 != null) {
|
||||
splitDoublePages()
|
||||
}
|
||||
*/
|
||||
}
|
||||
scope.launchUI { progressIndicator.completeAndFadeOut() }
|
||||
return imageSource
|
||||
|
|
|
@ -210,7 +210,7 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
|
|||
this.joinedItems = pagedItems.map {
|
||||
Pair<ReaderItem, ReaderItem?>(
|
||||
it,
|
||||
if ((it as? ReaderPage)?.fullPage == true && it.firstHalf == true) SplitPage() else null,
|
||||
if ((it as? ReaderPage)?.fullPage == true && it.firstHalf == true) SplitPage else null,
|
||||
)
|
||||
}.toMutableList()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue