Skip to content

Commit

Permalink
Flip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dshokouhi committed Oct 20, 2021
1 parent 343a42f commit 0f4b309
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -217,7 +217,7 @@ class WebViewActivity : BaseActivity(), io.homeassistant.companion.android.webvi

settings.javaScriptEnabled = true
settings.domStorageEnabled = true
settings.mediaPlaybackRequiresUserGesture = presenter.isAutoPlayVideoEnabled()
settings.mediaPlaybackRequiresUserGesture = !presenter.isAutoPlayVideoEnabled()
settings.userAgentString = USER_AGENT_STRING + " ${Build.MODEL} ${BuildConfig.VERSION_NAME}"
webViewClient = object : WebViewClient() {
override fun onReceivedError(
Expand Down

0 comments on commit 0f4b309

Please sign in to comment.