summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Gluck <justin.gluck@livio.io>2019-12-10 15:18:24 -0500
committerJustin Gluck <justin.gluck@livio.io>2019-12-10 15:18:24 -0500
commit4219934d81f938b2f6169d5ec63d4f451297f4da (patch)
tree50ac33a2b55a249c9a383e53bd2556d1d3a390ff
parent2bb4b07c5e81dfcb7d5fafd92edcabb7e15eb994 (diff)
downloadsdl_ios-bugfix/issue-1492-SDLLockScreenViewController-abnormalUI.tar.gz
making lock screen always be the full dimensions of the screenbugfix/issue-1492-SDLLockScreenViewController-abnormalUI
-rw-r--r--SmartDeviceLink/SDLLockScreenPresenter.m12
1 files changed, 1 insertions, 11 deletions
diff --git a/SmartDeviceLink/SDLLockScreenPresenter.m b/SmartDeviceLink/SDLLockScreenPresenter.m
index 20b9b3897..c0dddfb77 100644
--- a/SmartDeviceLink/SDLLockScreenPresenter.m
+++ b/SmartDeviceLink/SDLLockScreenPresenter.m
@@ -134,12 +134,8 @@ NS_ASSUME_NONNULL_BEGIN
// We let ourselves know that the lockscreen will present, because we have to pause streaming video for that 0.3 seconds or else it will be very janky.
[[NSNotificationCenter defaultCenter] postNotificationName:SDLLockScreenManagerWillPresentLockScreenViewController object:nil];
- CGRect firstFrame = appWindow.frame;
- firstFrame.origin.x = CGRectGetWidth(firstFrame);
- appWindow.frame = firstFrame;
-
// We then move the lockWindow to the original appWindow location.
- self.lockWindow.frame = appWindow.bounds;
+ self.lockWindow.frame = UIScreen.mainScreen.bounds;
[self.screenshotViewController loadScreenshotOfWindow:appWindow];
[self.lockWindow makeKeyAndVisible];
@@ -232,12 +228,6 @@ NS_ASSUME_NONNULL_BEGIN
// Dismiss the lockscreen
SDLLogD(@"Dismiss lock screen window from app window: %@", appWindow);
[self.lockViewController dismissViewControllerAnimated:YES completion:^{
- CGRect lockFrame = self.lockWindow.frame;
- lockFrame.origin.x = CGRectGetWidth(lockFrame);
- self.lockWindow.frame = lockFrame;
-
- // Quickly move the map back, and make it the key window.
- appWindow.frame = self.lockWindow.bounds;
[appWindow makeKeyAndVisible];
// Tell ourselves we are done.