From 8986de3db4df2b81fc94f6465d05b1ad9f4ad3c3 Mon Sep 17 00:00:00 2001 From: Jay Date: Fri, 8 May 2020 15:15:50 -0400 Subject: [PATCH] Fixed typo in reader chapter sheet --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt | 4 ++-- .../eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt | 6 +++--- 2 files changed, 5 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 9de9f6a531..8928c0e175 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 @@ -557,13 +557,13 @@ class ReaderActivity : BaseRxActivity(), if (config?.showNewChapter == false) { systemUi?.show() } - } else if (chapters_bottom_sheet.shouldCollaspe && chapters_bottom_sheet.sheetBehavior.isExpanded()) { + } else if (chapters_bottom_sheet.shouldCollapse && chapters_bottom_sheet.sheetBehavior.isExpanded()) { chapters_bottom_sheet.sheetBehavior?.collapse() } if (chapters_bottom_sheet.selectedChapterId != page.chapter.chapter.id) { chapters_bottom_sheet.refreshList() } - chapters_bottom_sheet.shouldCollaspe = true + chapters_bottom_sheet.shouldCollapse = true // Set seekbar progress page_seekbar.max = pages.lastIndex diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt index 5799083431..316af1fd67 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderChapterSheet.kt @@ -32,7 +32,7 @@ class ReaderChapterSheet @JvmOverloads constructor(context: Context, attrs: Attr lateinit var presenter: ReaderPresenter var adapter: FastAdapter? = null private val itemAdapter = ItemAdapter() - var shouldCollaspe = true + var shouldCollapse = true var selectedChapterId = -1L fun setup(activity: ReaderActivity) { @@ -68,7 +68,7 @@ class ReaderChapterSheet @JvmOverloads constructor(context: Context, attrs: Attr override fun onStateChanged(p0: View, state: Int) { if (state == BottomSheetBehavior.STATE_COLLAPSED) { - shouldCollaspe = true + shouldCollapse = true sheetBehavior?.isHideable = false (chapter_recycler.layoutManager as LinearLayoutManager).scrollToPositionWithOffset( adapter?.getPosition(presenter.getCurrentChapter()?.chapter?.id ?: 0L) ?: 0, @@ -86,7 +86,7 @@ class ReaderChapterSheet @JvmOverloads constructor(context: Context, attrs: Attr chapter_recycler.adapter = adapter adapter?.onClickListener = { _, _, item, _ -> if (item.chapter.id != presenter.getCurrentChapter()?.chapter?.id) { - shouldCollaspe = false + shouldCollapse = false presenter.loadChapter(item.chapter) } true