Github user daserge commented on the pull request:
https://github.com/apache/cordova-plugin-splashscreen/pull/45#issuecomment-167118349
Combining `splashDialog.getWindow().setFlags` and
`splashDialog.getWindow().getDecorView().setSystemUiVisibility` approach works
on 4.0.3 (with and without soft navbar), 4.3 and 5.1.1:
```java
if (isForceFullScreen()) {
splashDialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
splashDialog.getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
View.SYSTEM_UI_FLAG_FULLSCREEN);
}
```
(the current code works properly only for >=Lollipop)
What do you think on updating to this?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]