Capacitor Version
8.0.0
Other API Details
node: 24.12.0
npm: 11.6.2
Platforms Affected
Current Behavior
When switching the theme (light/dark) on devices using Android <= 14, the safe-area margins do not update their background color, causing the Status Bar content to become hard to read.
If the app is closed and reopened, the background color is applied correctly.
Expected Behavior
The safe-area margins should update their background color immediately when switching between light and dark themes, without requiring the app to be closed and reopened.
Project Reproduction
https://github.com/luisbytes/system-bars
Additional Information
@theproducer This functionality could be implemented using handleOnConfigurationChanged by updating the background just like the Status Bar legacy plugin does.
|
protected void handleOnConfigurationChanged(Configuration newConfig) { |
