I am currently trying to migrate my app to be compatible with Android 15. And as far as I concerned, in order to test Android 15 API, we need set up API 35 or VanillaIceCream API. Also based on the Android 15 migration, my app is set to edge-to-edge by default (which I don't want to).
After spending time to config the app, I manage to set the app to display correctly on my VanillaIceCream API emulator, make it display the status bar.
However, run the app in API 35 Emulator, I get this instead:
Basically the status bar items, such as time, WiFi, and battery indicator blend into the white background.
CompileSDK and targetSDK are all set to 35 in app's build.gradle.kts. And in my MainActivity.kt, i implemented the insets as follow:
My_App_Theme(
darkTheme = darkTheme
) {
Surface(
modifier = Modifier.windowInsetsPadding(
insets = WindowInsets.systemBars
),
color = MaterialTheme.colorScheme.background
) {
MY_APP(
darkTheme = darkTheme,
onThemeUpdated = { darkTheme = !darkTheme }
)
}
}
Is this the emulator error due to the fact that Android 15 hasn't been out yet, or there is something wrong of how I implemented the insets for the edge-to-edge configuration?