summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicoleYarroch <nicole@livio.io>2020-04-22 14:38:31 -0400
committerNicoleYarroch <nicole@livio.io>2020-04-22 14:38:31 -0400
commitaf6421905056a2a0e2689619010badb0986bff5a (patch)
tree0bb3f6ef009665a260d568b4411c7bc7907dee59
parentff1343eec3d198a19fdcf0cbdc6c6606ad53a6fd (diff)
downloadsdl_ios-bugfix/issue_1629_lockscreen_does_not_dismiss_on_transport_disconnect.tar.gz
-rw-r--r--SmartDeviceLink/SDLLockScreenManager.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLLockScreenManager.m b/SmartDeviceLink/SDLLockScreenManager.m
index 9f45efadb..6f7734030 100644
--- a/SmartDeviceLink/SDLLockScreenManager.m
+++ b/SmartDeviceLink/SDLLockScreenManager.m
@@ -172,10 +172,10 @@ NS_ASSUME_NONNULL_BEGIN
}
- (void)sdl_appDidBecomeActive:(NSNotification *)notification {
- // Restart, and potentially dismiss the lock screen if the app was disconnected in the background
__weak typeof(self) weakSelf = self;
- [self sdl_runOnMainQueue:^{
+ [self sdl_runAsyncOnConcurrentQueue:^{
__strong typeof(weakSelf) strongSelf = weakSelf;
+ // Restart, and potentially dismiss the lock screen if the app was disconnected in the background
if (!strongSelf.canPresent) {
[strongSelf start];
}