From 7071abb5aabc5d89642afbbf3d1cb7ebcb5eb4cf Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 23 Apr 2020 23:21:58 -0400 Subject: [PATCH] Fixed weird animation when going back to grouped recents --- .../java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt index 7f9739b3f5..676cb2aaf1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt @@ -124,7 +124,9 @@ class RecentsController(bundle: Bundle? = null) : BaseController(bundle), presenter.onCreate() if (presenter.recentItems.isNotEmpty()) { adapter.updateDataSet(presenter.recentItems) - adapter.addScrollableHeader(presenter.generalHeader) + if (presenter.viewType > 0) { + adapter.addScrollableHeader(presenter.generalHeader) + } } dl_bottom_sheet.onCreate(this)