diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2017-07-03 13:34:49 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2017-07-03 13:34:49 -0400 |
commit | aa42d6d1082fa9ed77bd16a9dd765754aebf8737 (patch) | |
tree | 16e85cc959a434b63c0c4ed6e1fe6ff71c797f06 | |
parent | 8edc4d6a3153bfe9bd26150f0656707662347abe (diff) | |
download | sdl_ios-aa42d6d1082fa9ed77bd16a9dd765754aebf8737.tar.gz |
Fixes #638
* Fixes an issue where connecting with an app open to an already moving issue (which casues multiple driver distraction notifications to be dispatched) would cause a crash due to multiple lock screens being presented.
-rw-r--r-- | SmartDeviceLink/SDLLockScreenPresenter.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLLockScreenPresenter.m b/SmartDeviceLink/SDLLockScreenPresenter.m index 024dd36c7..9092972d9 100644 --- a/SmartDeviceLink/SDLLockScreenPresenter.m +++ b/SmartDeviceLink/SDLLockScreenPresenter.m @@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN return NO; } - return (self.viewController.isViewLoaded && self.viewController.view.window); + return (self.viewController.isViewLoaded && (self.viewController.view.window || self.viewController.isBeingPresented)); } + (UIViewController *)sdl_getCurrentViewController { @@ -54,4 +54,4 @@ NS_ASSUME_NONNULL_BEGIN @end -NS_ASSUME_NONNULL_END
\ No newline at end of file +NS_ASSUME_NONNULL_END |