feat: Add fallback method for notch info retrieval using DisplayCutout API
This commit is contained in:
@@ -217,7 +217,7 @@ fun ChatsListScreen(
|
||||
focusManager.clearFocus()
|
||||
}
|
||||
|
||||
// Update status bar and completely hide navigation bar
|
||||
// Update status bar appearance
|
||||
LaunchedEffect(isDarkTheme) {
|
||||
if (!view.isInEditMode) {
|
||||
val window = (view.context as android.app.Activity).window
|
||||
@@ -228,13 +228,11 @@ fun ChatsListScreen(
|
||||
insetsController.isAppearanceLightStatusBars = !isDarkTheme
|
||||
window.statusBarColor = android.graphics.Color.TRANSPARENT
|
||||
|
||||
// Completely hide navigation bar
|
||||
insetsController.hide(
|
||||
// Navigation bar — keep visible, match theme
|
||||
insetsController.show(
|
||||
androidx.core.view.WindowInsetsCompat.Type.navigationBars()
|
||||
)
|
||||
insetsController.systemBarsBehavior =
|
||||
androidx.core.view.WindowInsetsControllerCompat
|
||||
.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
|
||||
insetsController.isAppearanceLightNavigationBars = !isDarkTheme
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user