mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
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
|
val params = v.layoutParams
|
||||||
params.height = getStatusBarHeight()
|
params.height = getStatusBarHeight()
|
||||||
v.layoutParams = params
|
v.layoutParams = params
|
||||||
|
|
Loading…
Reference in a new issue