You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by jc...@apache.org on 2023/04/24 22:22:29 UTC
[cordova-plugin-statusbar] 01/01: refactor: remove hardcoded style with UIStatusBarStyleDarkContent
This is an automated email from the ASF dual-hosted git repository.
jcesarmobile pushed a commit to branch remove-todo
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-statusbar.git
commit 56d9271683d3c9dc6161651ac4812cf812a6986b
Author: jcesarmobile <jc...@gmail.com>
AuthorDate: Tue Apr 25 00:22:06 2023 +0200
refactor: remove hardcoded style with UIStatusBarStyleDarkContent
---
src/ios/CDVStatusBar.m | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/ios/CDVStatusBar.m b/src/ios/CDVStatusBar.m
index c825c1a..3e788b8 100644
--- a/src/ios/CDVStatusBar.m
+++ b/src/ios/CDVStatusBar.m
@@ -295,8 +295,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
- (void) styleDefault:(CDVInvokedUrlCommand*)command
{
if (@available(iOS 13.0, *)) {
- // TODO - Replace with UIStatusBarStyleDarkContent once Xcode 10 support is dropped
- [self setStyleForStatusBar:3];
+ [self setStyleForStatusBar:UIStatusBarStyleDarkContent];
} else {
[self setStyleForStatusBar:UIStatusBarStyleDefault];
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org