forked from recloudstream/cloudstream
FIX CRASHING!
This commit is contained in:
parent
c09b6881e5
commit
344f974af2
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue