Commit 19b68fe3 authored by Tobias's avatar Tobias

fix search API continuing

parent 65cf74bf
......@@ -215,7 +215,17 @@ continueUserActivity:(NSUserActivity *)userActivity
_isComingFromHandoff = YES;
return YES;
} else {
NSURL *uriRepresentation = dict[@"playingmedia"];
NSURL *uriRepresentation = nil;
if ([userActivityType isEqualToString:CSSearchableItemActionType]) {
uriRepresentation = [NSURL URLWithString:dict[CSSearchableItemActivityIdentifier]];
} else {
uriRepresentation = dict[@"playingmedia"];
}
if (!uriRepresentation) {
return NO;
}
NSManagedObject *managedObject = [[MLMediaLibrary sharedMediaLibrary] objectForURIRepresentation:uriRepresentation];
if (managedObject == nil) {
APLog(@"%s file not found: %@",__PRETTY_FUNCTION__,userActivity);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment