Skip to content

Commit

Permalink
chore: functionalize
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannijunseokim committed Apr 16, 2024
1 parent 447fc4b commit 0b8f288
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/src/main/java/univ/earthbreaker/namu/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

enableEdgeToEdge(
statusBarStyle = SystemBarStyle.dark(
android.graphics.Color.TRANSPARENT,
),
)

makeStatusBarTransparent()
setContent {
GTTheme {
GrowTreeApp(onClickCameraIcon = {
Expand All @@ -46,4 +41,12 @@ class MainActivity : ComponentActivity() {
}
}
}

private fun makeStatusBarTransparent() {
enableEdgeToEdge(
statusBarStyle = SystemBarStyle.dark(
android.graphics.Color.TRANSPARENT,
),
)
}
}

0 comments on commit 0b8f288

Please sign in to comment.