From 8a96b53601e83e1b419ec7d1f7aaadbdd85420ec Mon Sep 17 00:00:00 2001 From: Jay Date: Sun, 10 May 2020 19:43:42 -0400 Subject: [PATCH] Toolbar no longer shows when jumping chapters with transistion off (cherry picked from commit a9b073fa40b780b790ec4d22d51b02629fe790e3) --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index 8452c2bc3a..1e443272c8 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -547,11 +547,8 @@ class ReaderActivity : BaseRxActivity(), // 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) {