Fix status bar bug

pull/107/head
gmbnt 5 years ago
parent b810dffa46
commit 2ac196ec86

@ -5,15 +5,11 @@
<key>BuildDetails</key>
<dict>
<key>CarthageVersion</key>
<string>0.33.0</string>
<key>DateTime</key>
<string>Fri Mar 6 00:51:56 UTC 2020</string>
<string>0.34.0</string>
<key>OSXVersion</key>
<string>10.15.3</string>
<key>WebRTCCommit</key>
<string>1445d719bf05280270e9f77576f80f973fd847f8 M73</string>
<key>XCodeVersion</key>
<string>1100.1130</string>
</dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>

@ -12,3 +12,9 @@ public var isLightMode: Bool {
public var isDarkMode: Bool {
return AppMode.current == .dark
}
@objc public final class LKAppModeUtilities : NSObject {
@objc public static func isLightMode() -> Bool { return AppMode.current == .light }
@objc public static func isDarkMode() -> Bool { return AppMode.current == .dark }
}

@ -164,12 +164,7 @@ NS_ASSUME_NONNULL_BEGIN
// Status bar is overlaying the green "call banner"
return UIStatusBarStyleLightContent;
} else {
UIViewController *presentedViewController = self.presentedViewController;
if (presentedViewController) {
return presentedViewController.preferredStatusBarStyle;
} else {
return (Theme.isDarkThemeEnabled ? UIStatusBarStyleLightContent : super.preferredStatusBarStyle);
}
return LKAppModeUtilities.isLightMode ? UIStatusBarStyleDefault : UIStatusBarStyleLightContent;
}
}

Loading…
Cancel
Save