Fix overlay tooltip in webtoon and vertical reader layout

Fixes #1030
This commit is contained in:
Jays2Kings 2021-10-10 15:11:47 -04:00
parent 799824ee1f
commit ef3daed651
2 changed files with 2 additions and 2 deletions

View file

@ -999,7 +999,7 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
lastShiftDoubleState?.let { newViewer.config.shiftDoublePage = it }
}
binding.navigationOverlay.isLTR = viewer !is L2RPagerViewer
binding.navigationOverlay.isLTR = viewer !is R2LPagerViewer
binding.viewerContainer.setBackgroundColor(
if (viewer is WebtoonViewer) {
Color.BLACK

View file

@ -16,7 +16,7 @@ abstract class ViewerNavigation {
fun directionalRegion(LTR: Boolean): NavigationRegion {
return if (this === LEFT || this === RIGHT) {
if (if (LTR) this === LEFT else this === RIGHT) NEXT else PREV
if (if (LTR) this === RIGHT else this === LEFT) NEXT else PREV
} else this
}
}