Skip to content

Commit

Permalink
Fix extra top bar showing up on some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun authored and Rawa committed Nov 12, 2024
1 parent b73e60b commit b617c49
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,17 @@ 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
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 b617c49

Please sign in to comment.