Skip to content

Commit

Permalink
make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkobor committed Nov 15, 2024
1 parent 1654859 commit ef3f0e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ open class AccompanistWebChromeClient : WebChromeClient() {
override fun getDefaultVideoPoster(): Bitmap? {
return if (state.webSettings.androidWebSettings.hideDefaultVideoPoster) {
Bitmap.createBitmap(50, 50, Bitmap.Config.ARGB_8888)
} else super.getDefaultVideoPoster()
} else {
super.getDefaultVideoPoster()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ fun IOSWebView(
mediaTypesRequiringUserActionForPlayback =
if (state.webSettings.iOSWebSettings.mediaPlaybackRequiresUserGesture) {
WKAudiovisualMediaTypeAll
} else WKAudiovisualMediaTypeNone
} else {
WKAudiovisualMediaTypeNone
}
defaultWebpagePreferences.allowsContentJavaScript =
state.webSettings.isJavaScriptEnabled
preferences.apply {
Expand Down

0 comments on commit ef3f0e2

Please sign in to comment.