Another tracepot crash fix
This commit is contained in:
parent
2c7ceb900b
commit
620d3c57e8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue