mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-23 00:28:09 +00:00
Fix crash on iOS 8
This commit is contained in:
1 parent
fdc9e00c54
commit
78e16b0e29
1 file changed
+5
-3
@@ -24,9 +24,11 @@ static NSString* DB_NAME = @"Limelight_iOS.sqlite";
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
#if !TARGET_OS_TV
|
||||
UIApplicationShortcutItem* shortcut = [launchOptions valueForKey:UIApplicationLaunchOptionsShortcutItemKey];
|
||||
if (shortcut != nil) {
|
||||
_pcUuidToLoad = (NSString*)[shortcut.userInfo objectForKey:@"UUID"];
|
||||
if (@available(iOS 9.0, *)) {
|
||||
UIApplicationShortcutItem* shortcut = [launchOptions valueForKey:UIApplicationLaunchOptionsShortcutItemKey];
|
||||
if (shortcut != nil) {
|
||||
_pcUuidToLoad = (NSString*)[shortcut.userInfo objectForKey:@"UUID"];
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return YES;
|
||||
|
||||
Reference in new issue
Block a user