mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Stop javascript for non element call widgets.
This commit is contained in:
parent
5c55263cf6
commit
95783506a2
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user