skout90 commented on issue #849:
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/849#issuecomment-1239206314

   In my case @chrisjdev code, don't show statusbar. below code shows statusbar.
   
   ```java
   @SuppressLint("NewApi")
   public void run() {
       ...
       dialog.getWindow().clearFlags(0x04000000); // SDK 19: 
WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
       dialog.getWindow().addFlags(0x80000000); // SDK 21: 
WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
   
       View decorView = dialog.getWindow().getDecorView();
       decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
   
       try {
           // Using reflection makes sure any 5.0+ device will work without 
having to compile with SDK level 21
           dialog.getWindow().getClass().getMethod("setStatusBarColor", 
int.class)
                   .invoke(dialog.getWindow(), Color.WHITE);
       } catch (Exception e) {
           e.printStackTrace();
       }
       ...
   }
   ```


-- 
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