fix wv destruction

pull/653/merge
Varun Patil 2023-05-23 20:09:17 -07:00
parent 23c784f2cd
commit 7bc13f924f
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ import gallery.memories.databinding.ActivityMainBinding
override fun onDestroy() {
super.onDestroy()
binding.webview.removeAllViews();
binding.coordinator.removeAllViews()
binding.webview.destroy();
nativex.destroy()
}

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/coordinator"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"