Stop javascript for non element call widgets.

This commit is contained in:
Onuray Sahin 2022-07-07 13:19:40 +03:00
parent 5c55263cf6
commit 95783506a2
1 changed files with 5 additions and 3 deletions

View File

@ -131,9 +131,11 @@ class WidgetFragment @Inject constructor(
override fun onPause() {
super.onPause()
views.widgetWebView.let {
it.pauseTimers()
it.onPause()
if (fragmentArgs.kind != WidgetKind.ELEMENT_CALL) {
views.widgetWebView.let {
it.pauseTimers()
it.onPause()
}
}
}