diff options
author | NicoleYarroch <nicole@livio.io> | 2020-04-22 14:38:31 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2020-04-22 14:38:31 -0400 |
commit | af6421905056a2a0e2689619010badb0986bff5a (patch) | |
tree | 0bb3f6ef009665a260d568b4411c7bc7907dee59 | |
parent | ff1343eec3d198a19fdcf0cbdc6c6606ad53a6fd (diff) | |
download | sdl_ios-bugfix/issue_1629_lockscreen_does_not_dismiss_on_transport_disconnect.tar.gz |
Fixed queue used in sdl_appDidBecomeActive:bugfix/issue_1629_lockscreen_does_not_dismiss_on_transport_disconnect
-rw-r--r-- | SmartDeviceLink/SDLLockScreenManager.m | 4 |
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]; } |