Skip to content

Commit 4eae584

Browse files
committed
Feat: WebView 설정 추가 및 URL 로드 조건 변경
1 parent 5864b43 commit 4eae584

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

presentation/src/main/java/com/threegap/bitnagil/presentation/webview/BitnagilWebViewScreen.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.threegap.bitnagil.presentation.webview
22

33
import android.view.ViewGroup
44
import android.webkit.WebResourceRequest
5+
import android.webkit.WebSettings
56
import android.webkit.WebView
67
import android.webkit.WebViewClient
78
import 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
},

0 commit comments

Comments
 (0)