GitHub user urmx opened a pull request: https://github.com/apache/cordova-plugin-statusbar/pull/78
CB-11858: (android) Add StatusBarStyle feature support for Android M+ ### Platforms affected Android 6.0+ (API level 23+) ### What does this PR do? This PR add StatusBarStyle feature support for Android 6.0+ (Marshmallow, API level 23+). The existing "StatusBarStyle" preference is used, and according to the README.md, the possible case-insensitive values are: - __default__: dark content (for light backgrounds) - __lightcontent__: light content (for dark backgrounds) - __blacktranslucent__: light content (for dark backgrounds) - __blackopaque__: light content (for dark backgrounds) This value can also be changed with the existing javascript functions: - `StatusBar.styleDefault()` - `StatusBar.styleLightContent()` - `StatusBar.styleBlackTranslucent()` - `StatusBar.styleBlackOpaque()` The default value is "__lightcontent__" as specified in the README (thus backward compatible with the previous style). ### What testing has been done on this change? - Default value (no StatusBarStyle parameter in config.xml) in a Cordova project on a Xperia Z3 Android 6.0.1 - The four StatusBarStyle values (lower and mixed cases) in config.xml in a Cordova project on a Xperia Z3 Android 6.0.1 - An invalid value "foo" in config.xml in a Cordova project on a Xperia Z3 Android 6.0.1 - The four StatusBar.style* methods in Chrome Remote Debugger on a Xperia Z3 Android 6.0.1 - Travis CI on this branch ### Checklist - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. - [ ] Added automated test coverage as appropriate for this change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/urmx/cordova-plugin-statusbar CB-11858 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-statusbar/pull/78.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #78 ---- commit dd879140c42fa09c4274a76b9693be16e7f24f2a Author: Max Ruman <r...@zanvio.com> Date: 2017-04-21T10:55:58Z CB-11858: (android) Add StatusBarStyle feature support for Android M+ ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org