summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLLockScreenManager.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/SDLLockScreenManager.m')
-rw-r--r--SmartDeviceLink/SDLLockScreenManager.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/SmartDeviceLink/SDLLockScreenManager.m b/SmartDeviceLink/SDLLockScreenManager.m
index 1f762acc8..b39fd2160 100644
--- a/SmartDeviceLink/SDLLockScreenManager.m
+++ b/SmartDeviceLink/SDLLockScreenManager.m
@@ -57,17 +57,17 @@ NS_ASSUME_NONNULL_BEGIN
} else if (self.config.customViewController != nil) {
self.presenter.viewController = self.config.customViewController;
} else {
- SDLLockScreenViewController *lockScreenVC = nil;
+ SDLLockScreenViewController *viewController = nil;
@try {
- lockScreenVC = [[UIStoryboard storyboardWithName:@"SDLLockScreen" bundle:[NSBundle bundleForClass:[self class]]] instantiateInitialViewController];
+ viewController = [[UIStoryboard storyboardWithName:@"SDLLockScreen" bundle:[NSBundle bundleForClass:[self class]]] instantiateInitialViewController];
} @catch (NSException *exception) {
[SDLDebugTool logInfo:@"SDL Error: Attempted to instantiate the default SDL Lock Screen and could not find the storyboard. Be sure the 'SmartDeviceLink' bundle is within your main bundle. We're just going to return without instantiating the lock screen."];
return;
}
- lockScreenVC.appIcon = self.config.appIcon;
- lockScreenVC.backgroundColor = self.config.backgroundColor;
- self.presenter.viewController = lockScreenVC;
+ viewController.appIcon = self.config.appIcon;
+ viewController.backgroundColor = self.config.backgroundColor;
+ self.presenter.viewController = viewController;
}
self.canPresent = YES;