FIX CRASHING!

This commit is contained in:
Blatzar 2022-11-02 23:55:41 +01:00
parent c09b6881e5
commit 344f974af2
1 changed files with 3 additions and 1 deletions

View File

@ -328,7 +328,9 @@ object UIHelper {
)
}
fun Context.fixPaddingStatusbarView(v: View) {
fun Context.fixPaddingStatusbarView(v: View?) {
if (v == null) return
val params = v.layoutParams
params.height = getStatusBarHeight()
v.layoutParams = params