Skip to content

Commit

Permalink
Merge branch 'extra-top-bar-droid-1533'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Nov 12, 2024
2 parents b73e60b + e3661fa commit c838835
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ class MainActivity : ComponentActivity(), AndroidScopeComponent {
override fun onCreate(savedInstanceState: Bundle?) {
loadKoinModules(listOf(uiModule, paymentModule))

// Tell the system that we will draw behind the status bar and navigation bar
WindowCompat.setDecorFitsSystemWindows(window, false)

lifecycle.addObserver(noDaemonViewModel)

installSplashScreen().setKeepOnScreenCondition {
val isReady = isReadyNextDraw
isReadyNextDraw = splashCompleteRepository.isSplashComplete()
!isReady
}

// Tell the system that we will draw behind the status bar and navigation bar
// This needs to be called after installSplashScreen()
WindowCompat.setDecorFitsSystemWindows(window, false)

super.onCreate(savedInstanceState)

// Needs to be before set content since we want to access the intent in compose
Expand Down

0 comments on commit c838835

Please sign in to comment.