Skip to content

Commit

Permalink
fix setting background color
Browse files Browse the repository at this point in the history
  • Loading branch information
lng-stripe committed Dec 20, 2024
1 parent 8152aa3 commit c72b3ed
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ internal class StripeConnectWebViewContainerImpl<Listener, Props>(

private fun bindViewState(state: StripeConnectWebViewContainerState) {
val viewBinding = this.viewBinding ?: return
logger.debug("Binding view state: $state")
viewBinding.root.setBackgroundColor(state.backgroundColor)
viewBinding.stripeWebView.setBackgroundColor(state.backgroundColor)
viewBinding.stripeWebViewProgressBar.isVisible = state.isNativeLoadingIndicatorVisible
viewBinding.stripeWebView.isVisible = !state.isNativeLoadingIndicatorVisible
Expand Down

0 comments on commit c72b3ed

Please sign in to comment.