Commit 05a1af07 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

library view controller: fix runtime exception and remove commented call of a beta-OS only API

parent 7c6621d4
...@@ -366,11 +366,14 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData"; ...@@ -366,11 +366,14 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
} }
self.userActivity.title = file.title; self.userActivity.title = file.title;
self.userActivity.contentAttributeSet = file.coreSpotlightAttributeSet; self.userActivity.contentAttributeSet = file.coreSpotlightAttributeSet;
self.userActivity.userInfo = @{@"playingmedia":mediaObject.objectID.URIRepresentation};
NSURL *uriRepresentation = mediaObject.objectID.URIRepresentation;
if (uriRepresentation != nil) {
self.userActivity.userInfo = @{ @"playingmedia": uriRepresentation};
}
self.userActivity.eligibleForSearch = YES; self.userActivity.eligibleForSearch = YES;
self.userActivity.eligibleForHandoff = YES; self.userActivity.eligibleForHandoff = YES;
//self.userActivity.contentUserAction = NSUserActivityContentUserActionPlay;
[self.userActivity becomeCurrent]; [self.userActivity becomeCurrent];
} }
} }
......
Supports Markdown
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