Skip to content

Commit

Permalink
Toolbar no longer shows when jumping chapters with transistion off
Browse files Browse the repository at this point in the history
(cherry picked from commit a9b073f)
  • Loading branch information
Jays2Kings authored and nonproto committed May 10, 2020
1 parent eab927a commit 8a96b53
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -547,11 +547,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) {
Expand Down

0 comments on commit 8a96b53

Please sign in to comment.