Another tracepot crash fix

This commit is contained in:
Jay 2020-05-21 23:16:49 -04:00
parent 2c7ceb900b
commit 620d3c57e8

View file

@ -232,8 +232,8 @@ class RecentsController(bundle: Bundle? = null) : BaseController(bundle),
} }
fun setPadding(sheetIsHidden: Boolean) { fun setPadding(sheetIsHidden: Boolean) {
recycler.updatePaddingRelative(bottom = if (sheetIsHidden) 0 else 20.dpToPx) recycler?.updatePaddingRelative(bottom = if (sheetIsHidden) 0 else 20.dpToPx)
recycler.updateLayoutParams<ViewGroup.MarginLayoutParams> { recycler?.updateLayoutParams<ViewGroup.MarginLayoutParams> {
bottomMargin = if (sheetIsHidden) 0 else 30.dpToPx bottomMargin = if (sheetIsHidden) 0 else 30.dpToPx
} }
} }