You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/05 17:45:15 UTC

[GitHub] [cordova-plugin-statusbar] Akronae edited a comment on issue #155: Plugin not working on Android 9

Akronae edited a comment on issue #155: Plugin not working on Android 9
URL: https://github.com/apache/cordova-plugin-statusbar/issues/155#issuecomment-570932165
 
 
   Okay I've found that using this structure works
   
   ```js
   StatusBar.overlaysWebView(false);
   setTimeout(() =>
   {
       StatusBar.overlaysWebView(true)
       setTimeout(() =>
       {
           StatusBar.backgroundColorByHexString('#22200000')
       }, 100)
   }, 100)
   ```
   Kind of stinky but it's the only way to making it work 😂
   I've also noticed that when not using this technique, focusing an input field and having the keyboard getting displayed makes the status bar render as it should.
   
   Hope this helps

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org