breautek commented on issue #1501:
URL: 
https://github.com/apache/cordova-android/issues/1501#issuecomment-1621699390

   I've added this to a 12.0.1 for now...
   
   But I think the solution might be to create a Cordova Theme and have the 
statusbar preferences manipulate the statusbar theme values respectively. The 
post theme can default to this new cordova theme. If that's the route we take, 
then that may be considered a breaking change... in which case we'd want to 
change the milestone to 13.x.
   
   FWIW I've ran into this issue on my own apps and 
https://github.com/apache/cordova-android/issues/1501#issuecomment-1294202691 
served as a workaround for the time being.
   
   I created a theme xml file that looks like this (style name can be changed 
if desired):
   
   ```xml
   <?xml version="1.0" encoding="utf-8"?>
   <resources>
       <style name="Theme.App.TotalPave" parent="Theme.AppCompat.NoActionBar">
           <item name="android:statusBarColor">@android:color/transparent</item>
       </style>
   </resources>
   ```
   
   and inside my config xml:
   
   ```xml
   <preference name="StatusBarOverlaysWebView" value="true" />
   <preference name="AndroidPostSplashScreenTheme" 
value="@style/Theme.App.TotalPave" />
   <platform name="android">
           <content src="index.html" /> 
           <resource-file src="./res/android/values/TotalPaveTheme.xml" 
target="app/src/main/res/values/TotalPaveTheme.xml" />
   ...
   ```
   
   Without the workaround, after app launch, the splashscreen will turn black, 
while maintaining the overlay state. This workaround allowed me to keep the 
colour transparent as one would expect for an overlay state. If you use the 
statusbar differently, then the theme config may need to be adjusted to fit 
your needs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to