Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
2235623f
Commit
2235623f
authored
Apr 21, 2018
by
Felix Paul Kühne
Browse files
library view controller: fix runtime exception and remove commented call of a beta-OS only API
(cherry picked from commit
05a1af07
)
parent
a01352d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCLibraryViewController.m
View file @
2235623f
...
...
@@ -365,11 +365,14 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
}
self
.
userActivity
.
title
=
file
.
title
;
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
.
eligibleForHandoff
=
YES
;
//self.userActivity.contentUserAction = NSUserActivityContentUserActionPlay;
[
self
.
userActivity
becomeCurrent
];
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment