From 51b50d8a51bb259b6ede2a18a66a9f42c6cd920c Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 28 Apr 2020 22:33:19 -0400 Subject: [PATCH] Fix crash when quickly leaving manga details --- .../java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt index abe99d2cb3..d909f2fc20 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt @@ -1022,7 +1022,7 @@ class MangaDetailsController : BaseController, // In case the recycler is at the bottom and collapsing the header makes it unscrollable override fun updateScroll() { - if (!recycler.canScrollVertically(-1)) { + if (recycler?.canScrollVertically(-1) == false) { getHeader()?.backdrop?.translationY = 0f activity?.appbar?.y = 0f colorToolbar(isColor = false, animate = false)