1
0
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:
Allan Wang 2019-10-14 23:45:10 -07:00
parent c129a7595e
commit 4f7ba30690
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56

View File

@ -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()
}
}