mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix launch screen glitch
This commit is contained in:
parent
8129b5da0d
commit
ae6015f5bf
|
@ -18,12 +18,13 @@ public class LoadingViewController: UIViewController {
|
|||
self.view = UIView()
|
||||
view.backgroundColor = UIColor.lokiDarkestGray()
|
||||
|
||||
self.logoView = UIImageView(image: #imageLiteral(resourceName: "Loki"))
|
||||
self.logoView = UIImageView(image: #imageLiteral(resourceName: "Session"))
|
||||
view.addSubview(logoView)
|
||||
|
||||
logoView.autoCenterInSuperview()
|
||||
logoView.autoSetDimension(.width, toSize: 75)
|
||||
logoView.autoSetDimension(.height, toSize: 71)
|
||||
logoView.autoSetDimension(.height, toSize: 75)
|
||||
logoView.contentMode = .scaleAspectFit
|
||||
|
||||
self.topLabel = buildLabel()
|
||||
topLabel.alpha = 0
|
||||
|
|
|
@ -39,7 +39,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
AVAuthorizationStatus status = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];
|
||||
if (status == AVAuthorizationStatusDenied) {
|
||||
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.", @"")
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
|
|
|
@ -45,18 +45,19 @@ NSString *NSStringForScreenLockUIState(ScreenLockUIState value)
|
|||
[edgesView autoPinEdgeToSuperviewEdge:ALEdgeBottom];
|
||||
[edgesView autoPinWidthToSuperview];
|
||||
|
||||
UIImage *image = [UIImage imageNamed:@"Loki"];
|
||||
UIImage *image = [UIImage imageNamed:@"Session"];
|
||||
UIImageView *imageView = [UIImageView new];
|
||||
imageView.image = image;
|
||||
imageView.contentMode = UIViewContentModeScaleAspectFit;
|
||||
[edgesView addSubview:imageView];
|
||||
[imageView autoHCenterInSuperview];
|
||||
|
||||
[imageView autoSetDimension:ALDimensionWidth toSize:75];
|
||||
[imageView autoSetDimension:ALDimensionHeight toSize:71];
|
||||
[imageView autoSetDimension:ALDimensionHeight toSize:75];
|
||||
|
||||
const CGFloat kButtonHeight = 40.f;
|
||||
OWSFlatButton *button =
|
||||
[OWSFlatButton buttonWithTitle:NSLocalizedString(@"Unlock Loki Messenger", @"")
|
||||
[OWSFlatButton buttonWithTitle:NSLocalizedString(@"Unlock Session", @"")
|
||||
font:[OWSFlatButton fontForHeight:kButtonHeight]
|
||||
titleColor:UIColor.whiteColor
|
||||
backgroundColor:UIColor.clearColor
|
||||
|
|
Loading…
Reference in a new issue