File tree Expand file tree Collapse file tree
presentation/src/main/java/com/threegap/bitnagil/presentation/webview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.threegap.bitnagil.presentation.webview
22
33import android.view.ViewGroup
44import android.webkit.WebResourceRequest
5+ import android.webkit.WebSettings
56import android.webkit.WebView
67import android.webkit.WebViewClient
78import androidx.compose.foundation.background
@@ -53,6 +54,8 @@ fun BitnagilWebViewScreen(
5354 domStorageEnabled = true
5455 allowFileAccess = false
5556 allowContentAccess = false
57+ mixedContentMode = WebSettings .MIXED_CONTENT_NEVER_ALLOW
58+ setSupportZoom(false )
5659 }
5760
5861 layoutParams = ViewGroup .LayoutParams (
@@ -105,7 +108,7 @@ fun BitnagilWebViewScreen(
105108 modifier = Modifier .fillMaxSize(),
106109 factory = { webView },
107110 update = { view ->
108- if (view.url != url) {
111+ if (view.url != url && url.isNotBlank() ) {
109112 view.loadUrl(url)
110113 }
111114 },
You can’t perform that action at this time.
0 commit comments