Skip to content

Commit

Permalink
테마 정의 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluu committed Aug 7, 2024
1 parent 0672e70 commit bdb68ce
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
)
}
Expand Down

0 comments on commit bdb68ce

Please # to comment.