cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From daserge <...@git.apache.org>
Subject [GitHub] cordova-plugin-splashscreen pull request: CB-10255 Add options to ...
Date Thu, 24 Dec 2015 14:28:37 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message