mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 01:31:50 +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() {
|
||||
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 &&
|
||||
BottomButton.PageLayout.value in preferences.readerBottomButtons().get()
|
||||
cropBordersSheetButton.isVisible =
|
||||
if (viewer is PagerViewer) BottomButton.CropBordersPaged.value in preferences.readerBottomButtons().get()
|
||||
else BottomButton.CropBordersWebtoon.value in preferences.readerBottomButtons().get()
|
||||
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()
|
||||
if (viewer is PagerViewer) {
|
||||
BottomButton.CropBordersPaged.value in preferences.readerBottomButtons().get()
|
||||
} else {
|
||||
BottomButton.CropBordersWebtoon.value in preferences.readerBottomButtons().get()
|
||||
}
|
||||
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