11package com.yapp.breake.core.auth.kakao
22
33import android.annotation.SuppressLint
4+ import android.app.Activity
45import android.content.Intent
56import android.view.ViewGroup.LayoutParams
67import android.webkit.WebResourceError
@@ -9,16 +10,18 @@ import android.webkit.WebView
910import android.webkit.WebViewClient
1011import androidx.activity.compose.BackHandler
1112import androidx.compose.foundation.layout.fillMaxSize
12- import androidx.compose.foundation.layout.statusBarsPadding
1313import androidx.compose.runtime.Composable
14+ import androidx.compose.runtime.DisposableEffect
1415import androidx.compose.runtime.getValue
1516import androidx.compose.runtime.mutableStateOf
1617import androidx.compose.runtime.remember
1718import androidx.compose.runtime.setValue
1819import androidx.compose.ui.Modifier
1920import androidx.compose.ui.platform.LocalContext
21+ import androidx.compose.ui.platform.LocalView
2022import androidx.compose.ui.viewinterop.AndroidView
2123import androidx.core.net.toUri
24+ import androidx.core.view.WindowInsetsControllerCompat
2225import com.yapp.breake.core.auth.BuildConfig
2326import com.yapp.breake.core.auth.R
2427import timber.log.Timber
@@ -71,6 +74,24 @@ fun KakaoScreen(
7174 }
7275 }
7376
77+ val view = LocalView .current
78+
79+ DisposableEffect (view) {
80+ val window = (view.context as ? Activity )?.window ? : return @DisposableEffect onDispose {}
81+ val insetsController = WindowInsetsControllerCompat (window, view)
82+
83+ // 원래 설정 저장
84+ val originalLightStatusBars = insetsController.isAppearanceLightStatusBars
85+
86+ // Status Bar 아이콘을 어둡게 설정 (밝은 배경용)
87+ insetsController.isAppearanceLightStatusBars = true
88+
89+ onDispose {
90+ // 원래 설정으로 복원
91+ insetsController.isAppearanceLightStatusBars = originalLightStatusBars
92+ }
93+ }
94+
7495 val webView = WebView (context).apply {
7596 webViewRef = this
7697
@@ -185,9 +206,7 @@ fun KakaoScreen(
185206
186207 AndroidView (
187208 factory = { webView },
188- modifier = Modifier
189- .fillMaxSize()
190- .statusBarsPadding(),
209+ modifier = Modifier .fillMaxSize(),
191210 onRelease = { webView ->
192211 webView.destroySafely()
193212 },
0 commit comments