From bdb68cefe57e1e567dc1c155df13c020dedc865b Mon Sep 17 00:00:00 2001 From: pluu Date: Wed, 7 Aug 2024 23:36:05 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EB=A7=88=20=EC=A0=95=EC=9D=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webtoon/main/container/ui/NavigationActivity.kt | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/features/ui-main-container/src/main/java/com/pluu/webtoon/main/container/ui/NavigationActivity.kt b/features/ui-main-container/src/main/java/com/pluu/webtoon/main/container/ui/NavigationActivity.kt index 8ff81d04..a1d102ed 100644 --- a/features/ui-main-container/src/main/java/com/pluu/webtoon/main/container/ui/NavigationActivity.kt +++ b/features/ui-main-container/src/main/java/com/pluu/webtoon/main/container/ui/NavigationActivity.kt @@ -38,17 +38,12 @@ class NavigationActivity : FragmentActivity() { } } - private fun updateTheme(it: Boolean) { + private fun updateTheme(isForceDark: Boolean) { enableEdgeToEdge( - statusBarStyle = if (it) { - SystemBarStyle.dark( - Color.TRANSPARENT - ) + statusBarStyle = if (isForceDark) { + SystemBarStyle.dark(Color.TRANSPARENT) } else { - SystemBarStyle.light( - Color.TRANSPARENT, - Color.TRANSPARENT - ) + SystemBarStyle.auto(Color.TRANSPARENT, Color.TRANSPARENT) } ) }