From 33e5fea96c575a2de2b3850b707105e6e20e38bd Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 26 Jul 2020 17:47:43 -0400 Subject: [PATCH] Explicitly destroy webview on activity destroy --- .../java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt index 4c821f707a..ad0e4fd262 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewActivity.kt @@ -122,6 +122,11 @@ class WebViewActivity : BaseActivity() { } } + override fun onDestroy() { + binding.webview?.destroy() + super.onDestroy() + } + override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.webview, menu) return true