mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Fix crash on pre-iOS 13
This commit is contained in:
@@ -16,6 +16,9 @@
|
|||||||
NSInteger _bitrate;
|
NSInteger _bitrate;
|
||||||
Boolean _adjustedForSafeArea;
|
Boolean _adjustedForSafeArea;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@dynamic overrideUserInterfaceStyle;
|
||||||
|
|
||||||
static NSString* bitrateFormat = @"Bitrate: %.1f Mbps";
|
static NSString* bitrateFormat = @"Bitrate: %.1f Mbps";
|
||||||
static const int bitrateTable[] = {
|
static const int bitrateTable[] = {
|
||||||
500,
|
500,
|
||||||
@@ -108,7 +111,7 @@ static const int bitrateTable[] = {
|
|||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
|
|
||||||
// Always run settings in dark mode because we want the light fonts
|
// Always run settings in dark mode because we want the light fonts
|
||||||
if (@available(iOS 12.0, tvOS 12.0, *)) {
|
if (@available(iOS 13.0, tvOS 13.0, *)) {
|
||||||
self.overrideUserInterfaceStyle = UIUserInterfaceStyleDark;
|
self.overrideUserInterfaceStyle = UIUserInterfaceStyleDark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user