From bf685776be5a647464c18dacecb319a54d0941e3 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 1 Feb 2019 10:18:35 -0500 Subject: [PATCH] Ensure 'link new device' view is portrait. --- .../AppSettings/OWSLinkDeviceViewController.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/AppSettings/OWSLinkDeviceViewController.m b/Signal/src/ViewControllers/AppSettings/OWSLinkDeviceViewController.m index 42c74cac7..ccb8593ed 100644 --- a/Signal/src/ViewControllers/AppSettings/OWSLinkDeviceViewController.m +++ b/Signal/src/ViewControllers/AppSettings/OWSLinkDeviceViewController.m @@ -115,9 +115,11 @@ NS_ASSUME_NONNULL_BEGIN { [super viewDidAppear:animated]; - [self.qrScanningController startCapture]; - [UIDevice.currentDevice ows_setOrientation:UIInterfaceOrientationPortrait]; + + dispatch_async(dispatch_get_main_queue(), ^{ + [self.qrScanningController startCapture]; + }); } #pragma mark - OWSQRScannerDelegate