Fix launch screen glitch

pull/77/head
Niels Andriesse 5 years ago
parent 8129b5da0d
commit ae6015f5bf

@ -18,12 +18,13 @@ public class LoadingViewController: UIViewController {
self.view = UIView() self.view = UIView()
view.backgroundColor = UIColor.lokiDarkestGray() view.backgroundColor = UIColor.lokiDarkestGray()
self.logoView = UIImageView(image: #imageLiteral(resourceName: "Loki")) self.logoView = UIImageView(image: #imageLiteral(resourceName: "Session"))
view.addSubview(logoView) view.addSubview(logoView)
logoView.autoCenterInSuperview() logoView.autoCenterInSuperview()
logoView.autoSetDimension(.width, toSize: 75) logoView.autoSetDimension(.width, toSize: 75)
logoView.autoSetDimension(.height, toSize: 71) logoView.autoSetDimension(.height, toSize: 75)
logoView.contentMode = .scaleAspectFit
self.topLabel = buildLabel() self.topLabel = buildLabel()
topLabel.alpha = 0 topLabel.alpha = 0

@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN
AVAuthorizationStatus status = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; AVAuthorizationStatus status = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];
if (status == AVAuthorizationStatusDenied) { if (status == AVAuthorizationStatusDenied) {
UIAlertController *alert = [UIAlertController UIAlertController *alert = [UIAlertController
alertControllerWithTitle:NSLocalizedString(@"Loki Messenger needs camera access to scan QR codes.", @"") alertControllerWithTitle:NSLocalizedString(@"Session needs camera access to scan QR codes.", @"")
message:NSLocalizedString(@"You can enable camera access in your device settings.", @"") message:NSLocalizedString(@"You can enable camera access in your device settings.", @"")
preferredStyle:UIAlertControllerStyleAlert]; preferredStyle:UIAlertControllerStyleAlert];

@ -45,18 +45,19 @@ NSString *NSStringForScreenLockUIState(ScreenLockUIState value)
[edgesView autoPinEdgeToSuperviewEdge:ALEdgeBottom]; [edgesView autoPinEdgeToSuperviewEdge:ALEdgeBottom];
[edgesView autoPinWidthToSuperview]; [edgesView autoPinWidthToSuperview];
UIImage *image = [UIImage imageNamed:@"Loki"]; UIImage *image = [UIImage imageNamed:@"Session"];
UIImageView *imageView = [UIImageView new]; UIImageView *imageView = [UIImageView new];
imageView.image = image; imageView.image = image;
imageView.contentMode = UIViewContentModeScaleAspectFit;
[edgesView addSubview:imageView]; [edgesView addSubview:imageView];
[imageView autoHCenterInSuperview]; [imageView autoHCenterInSuperview];
[imageView autoSetDimension:ALDimensionWidth toSize:75]; [imageView autoSetDimension:ALDimensionWidth toSize:75];
[imageView autoSetDimension:ALDimensionHeight toSize:71]; [imageView autoSetDimension:ALDimensionHeight toSize:75];
const CGFloat kButtonHeight = 40.f; const CGFloat kButtonHeight = 40.f;
OWSFlatButton *button = OWSFlatButton *button =
[OWSFlatButton buttonWithTitle:NSLocalizedString(@"Unlock Loki Messenger", @"") [OWSFlatButton buttonWithTitle:NSLocalizedString(@"Unlock Session", @"")
font:[OWSFlatButton fontForHeight:kButtonHeight] font:[OWSFlatButton fontForHeight:kButtonHeight]
titleColor:UIColor.whiteColor titleColor:UIColor.whiteColor
backgroundColor:UIColor.clearColor backgroundColor:UIColor.clearColor

Loading…
Cancel
Save