diff --git a/ui/web-view/web-view.android.ts b/ui/web-view/web-view.android.ts index 8ecc3b384..fed4f76f3 100644 --- a/ui/web-view/web-view.android.ts +++ b/ui/web-view/web-view.android.ts @@ -105,6 +105,13 @@ export class WebView extends common.WebView { this._android.setWebViewClient(this._webViewClient); } + public _onDetached(force?: boolean) { + if (this.android) { + this.android.destroy(); + } + super._onDetached(force); + } + public _loadUrl(url: string) { if (!this._android) { return;