From 3d6ad28437a9eb7b9d4df008798516ca69352b4d Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 15 Apr 2020 00:03:30 -0400 Subject: [PATCH] Fixed selected chapter in list not updating --- .../main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 47b1d2532d..990fda758f 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 @@ -510,7 +510,7 @@ class ReaderActivity : BaseRxActivity(), } else if (chapters_bottom_sheet.shouldCollaspe && chapters_bottom_sheet.sheetBehavior?.state == BottomSheetBehavior.STATE_EXPANDED) { chapters_bottom_sheet.sheetBehavior?.state = BottomSheetBehavior.STATE_COLLAPSED } - if (chapters_bottom_sheet.selectedChapterId != presenter.getCurrentChapter()?.chapter?.id) + if (chapters_bottom_sheet.selectedChapterId != page.chapter.chapter.id) chapters_bottom_sheet.refreshList() chapters_bottom_sheet.shouldCollaspe = true