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
23dba31c
Commit
23dba31c
authored
Jun 19, 2015
by
Felix Paul Kühne
Browse files
forward-port state restoration fixes from the 2.6 branch
parent
f641f130
Changes
4
Hide whitespace changes
Inline
Side-by-side
Sources/VLCAppDelegate.m
View file @
23dba31c
...
...
@@ -382,6 +382,8 @@ didFailToContinueUserActivityWithType:(NSString *)userActivityType
{
_passcodeValidated
=
YES
;
[
self
.
playlistViewController
updateViewContents
];
if
([
VLCPlaybackController
sharedInstance
].
isPlaying
)
[
_playerDisplayController
pushPlaybackView
];
}
-
(
BOOL
)
passcodeValidated
...
...
@@ -394,6 +396,8 @@ didFailToContinueUserActivityWithType:(NSString *)userActivityType
VLCKeychainCoordinator
*
keychainCoordinator
=
[
VLCKeychainCoordinator
defaultCoordinator
];
if
(
!
_passcodeValidated
&&
[
keychainCoordinator
passcodeLockEnabled
])
{
[
_playerDisplayController
dismissPlaybackView
];
[
keychainCoordinator
validatePasscode
];
}
else
_passcodeValidated
=
YES
;
...
...
Sources/VLCMiniPlaybackView.m
View file @
23dba31c
...
...
@@ -111,10 +111,15 @@
[
_artworkView
addGestureRecognizer
:
_artworkTapRecognizer
];
_artworkView
.
userInteractionEnabled
=
YES
;
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector:
@selector
(
appBecameActive
:)
name:
UIApplicationDidBecomeActiveNotification
object:
nil
];
NSNotificationCenter
*
center
=
[
NSNotificationCenter
defaultCenter
];
[
center
addObserver
:
self
selector:
@selector
(
appBecameActive
:)
name:
UIApplicationDidBecomeActiveNotification
object:
nil
];
[
center
addObserver
:
self
selector:
@selector
(
appBecameActive
:)
name:
VLCPasscodeValidated
object:
nil
];
return
self
;
}
...
...
Sources/VLCPlayerDisplayController.h
View file @
23dba31c
...
...
@@ -26,4 +26,7 @@ typedef NS_ENUM(NSUInteger, VLCPlayerDisplayControllerDisplayMode) {
-
(
void
)
showFullscreenPlayback
;
-
(
void
)
closeFullscreenPlayback
;
-
(
void
)
pushPlaybackView
;
-
(
void
)
dismissPlaybackView
;
@end
Sources/VLCPlayerDisplayController.m
View file @
23dba31c
...
...
@@ -162,6 +162,19 @@ static inline void commonSetup(VLCPlayerDisplayController *self)
return
[[
UIApplication
sharedApplication
]
applicationState
]
!=
UIApplicationStateBackground
;
}
-
(
void
)
pushPlaybackView
{
switch
(
self
.
displayMode
)
{
case
VLCPlayerDisplayControllerDisplayModeFullscreen
:
[
self
_presentFullscreenPlaybackViewIfNeeded
];
break
;
case
VLCPlayerDisplayControllerDisplayModeMiniplayer
:
[
self
_showHideMiniPlaybackView
];
default:
break
;
}
}
-
(
void
)
dismissPlaybackView
{
switch
(
self
.
displayMode
)
{
...
...
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