Closed fquirin closed 1 year ago
Added 'WindowInsetsControllerCompat.setAppearanceLightStatusBars' to 'setStatusBarStyle' to fix dark content styles
In Android 12 the dark-content style wasn't working anymore due to the deprecated View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.
View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
I've added the new WindowInsetsControllerCompat.setAppearanceLightStatusBars method to make it work again.
WindowInsetsControllerCompat.setAppearanceLightStatusBars
Built the app with Cordova 11.0.0 and Android Studio and tested on Android 12 emulator, Android 11 device and Android 7 device.
(platform)
(android)
Works for me 👍
Added 'WindowInsetsControllerCompat.setAppearanceLightStatusBars' to 'setStatusBarStyle' to fix dark content styles
Platforms affected
Motivation and Context
In Android 12 the dark-content style wasn't working anymore due to the deprecated
View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
.Description
I've added the new
WindowInsetsControllerCompat.setAppearanceLightStatusBars
method to make it work again.Testing
Built the app with Cordova 11.0.0 and Android Studio and tested on Android 12 emulator, Android 11 device and Android 7 device.
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)