From 620d3c57e88dabe03ec0e27029ac97e0feb2460a Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 21 May 2020 23:16:49 -0400 Subject: [PATCH] Another tracepot crash fix --- .../java/eu/kanade/tachiyomi/ui/recents/RecentsController.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 efc538f2fe..959da8e705 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 @@ -232,8 +232,8 @@ class RecentsController(bundle: Bundle? = null) : BaseController(bundle), } fun setPadding(sheetIsHidden: Boolean) { - recycler.updatePaddingRelative(bottom = if (sheetIsHidden) 0 else 20.dpToPx) - recycler.updateLayoutParams { + recycler?.updatePaddingRelative(bottom = if (sheetIsHidden) 0 else 20.dpToPx) + recycler?.updateLayoutParams { bottomMargin = if (sheetIsHidden) 0 else 30.dpToPx } }