mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-10 04:52:38 +01:00
Enforce super destroy for webviews
This commit is contained in:
parent
c129a7595e
commit
4f7ba30690
@ -211,10 +211,7 @@ class FrostWebView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun destroy() {
|
||||
val parent = getParent() as? ViewGroup
|
||||
if (parent != null) {
|
||||
parent.removeView(this)
|
||||
super.destroy()
|
||||
}
|
||||
(getParent() as? ViewGroup)?.removeView(this)
|
||||
super.destroy()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user