Приложение запускается и отлично работает на моем личном устройстве Android 14, но когда я запускаю его на виртуальном устройстве Android 15, оно не рисуется. нижняя панель навигации системы на панели навигации в приложении.
Например
Android 14
ВМ Android 15 (темная тема не имеет значения)Я использую встроенный navBar, там мой код:
Код: Выделить всё
CollegeSTheme {
EdgeToEdgeConfig(
this,
bottomBarColor = MaterialTheme.colorScheme.surface
)
val navController = rememberNavController()
Scaffold(
Modifier
.fillMaxSize()
.navigationBarsPadding(),
bottomBar = {
BottomNavigationBar(navController = navController)
},
content = { padding ->
... useful part ends here
Код: Выделить всё
@Composable
fun EdgeToEdgeConfig(
activity: ComponentActivity,
statusBarColor: Color = MaterialTheme.colorScheme.background,
bottomBarColor: Color = MaterialTheme.colorScheme.background,
) {
val isDarkMode = isSystemInDarkTheme()
val statusBar = statusBarColor.hashCode()
val bottomBar = bottomBarColor.hashCode()
DisposableEffect(isDarkMode) {
activity.enableEdgeToEdge(
statusBarStyle = if (!isDarkMode) {
SystemBarStyle.light(
statusBar,
statusBar
)
} else {
SystemBarStyle.dark(
statusBar
)
},
navigationBarStyle = if (!isDarkMode) {
SystemBarStyle.light(
bottomBar,
bottomBar
)
} else {
SystemBarStyle.dark(
bottomBar
)
}
)
onDispose { }
}
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... -34-api-35