Toolbar no longer shows when jumping chapters with transistion off

This commit is contained in:
Jay 2020-05-10 19:43:42 -04:00
parent 76d82eb336
commit a9b073fa40

View file

@ -549,11 +549,8 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>(),
// Set seekbar page number
page_text.text = "${page.number} / ${pages.size}"
if (newChapter) {
if (config?.showNewChapter == false) {
systemUi?.show()
}
} else if (chapters_bottom_sheet.shouldCollapse && chapters_bottom_sheet.sheetBehavior.isExpanded()) {
if (!newChapter && chapters_bottom_sheet.shouldCollapse && chapters_bottom_sheet
.sheetBehavior.isExpanded()) {
chapters_bottom_sheet.sheetBehavior?.collapse()
}
if (chapters_bottom_sheet.selectedChapterId != page.chapter.chapter.id) {