Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
19b68fe3
Commit
19b68fe3
authored
Sep 21, 2015
by
Tobias
Browse files
fix search API continuing
parent
65cf74bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCAppDelegate.m
View file @
19b68fe3
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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