mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 14:31:52 +01:00
Fix shift button not showing in toolbar when toggled in intent reader settings
This commit is contained in:
parent
5a4632a99c
commit
3b23a95985
@ -433,15 +433,25 @@ class ReaderActivity :
|
|||||||
|
|
||||||
private fun updateBottomShortcuts() {
|
private fun updateBottomShortcuts() {
|
||||||
with(binding.chaptersSheet) {
|
with(binding.chaptersSheet) {
|
||||||
readingMode.isVisible = presenter?.manga?.isLongStrip() != true && BottomButton.ReadingMode.value in preferences.readerBottomButtons().get()
|
readingMode.isVisible =
|
||||||
|
presenter?.manga?.isLongStrip() != true &&
|
||||||
|
BottomButton.ReadingMode.value in preferences.readerBottomButtons().get()
|
||||||
doublePage.isVisible = viewer is PagerViewer &&
|
doublePage.isVisible = viewer is PagerViewer &&
|
||||||
BottomButton.PageLayout.value in preferences.readerBottomButtons().get()
|
BottomButton.PageLayout.value in preferences.readerBottomButtons().get()
|
||||||
cropBordersSheetButton.isVisible =
|
cropBordersSheetButton.isVisible =
|
||||||
if (viewer is PagerViewer) BottomButton.CropBordersPaged.value in preferences.readerBottomButtons().get()
|
if (viewer is PagerViewer) {
|
||||||
else BottomButton.CropBordersWebtoon.value in preferences.readerBottomButtons().get()
|
BottomButton.CropBordersPaged.value in preferences.readerBottomButtons().get()
|
||||||
webviewButton.isVisible = BottomButton.WebView.value in preferences.readerBottomButtons().get()
|
} else {
|
||||||
chaptersButton.isVisible = BottomButton.ViewChapters.value in preferences.readerBottomButtons().get()
|
BottomButton.CropBordersWebtoon.value in preferences.readerBottomButtons().get()
|
||||||
shiftPageButton.isVisible = ((viewer as? PagerViewer)?.config?.doublePages ?: false) && canShowSplitAtBottom()
|
}
|
||||||
|
webviewButton.isVisible =
|
||||||
|
BottomButton.WebView.value in preferences.readerBottomButtons().get()
|
||||||
|
chaptersButton.isVisible =
|
||||||
|
BottomButton.ViewChapters.value in preferences.readerBottomButtons().get()
|
||||||
|
shiftPageButton.isVisible =
|
||||||
|
((viewer as? PagerViewer)?.config?.doublePages ?: false) && canShowSplitAtBottom()
|
||||||
|
binding.toolbar.menu.findItem(R.id.action_shift_double_page)?.isVisible =
|
||||||
|
((viewer as? PagerViewer)?.config?.doublePages ?: false) && !canShowSplitAtBottom()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user