[
https://issues.apache.org/jira/browse/CB-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15071054#comment-15071054
]
ASF GitHub Bot commented on CB-10255:
-------------------------------------
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?
> Add options to hide splashscreen navigation and status bars on Android
> ----------------------------------------------------------------------
>
> Key: CB-10255
> URL: https://issues.apache.org/jira/browse/CB-10255
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Plugin SplashScreen
> Reporter: Sergey Shakhnazarov
> Labels: android
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]