Skip to content

Commit

Permalink
add fix to onresume
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Apr 16, 2024
1 parent 1b5abb3 commit 0b8430a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class IntroActivity : AppIntro() {
enableEdgeToEdge()
super.onResume()
setImmersiveMode()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
window.attributes.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
WindowCompat.setDecorFitsSystemWindows(window, false)
}
}

override fun onCreate(savedInstanceState: Bundle?) {
Expand Down

0 comments on commit 0b8430a

Please sign in to comment.