From 763d56c5d5d80d54782c9b49a9ff4f5c6dd66c1a Mon Sep 17 00:00:00 2001 From: Frederic Jacobs Date: Sun, 22 Feb 2015 16:28:52 +0100 Subject: [PATCH] Fixes #613 --- Signal/src/Storyboard/Storyboard.storyboard | 80 ++++++++++--------- .../FingerprintViewController.h | 33 ++++---- .../FingerprintViewController.m | 5 ++ 3 files changed, 64 insertions(+), 54 deletions(-) diff --git a/Signal/src/Storyboard/Storyboard.storyboard b/Signal/src/Storyboard/Storyboard.storyboard index 82783e106..afacc8b2a 100755 --- a/Signal/src/Storyboard/Storyboard.storyboard +++ b/Signal/src/Storyboard/Storyboard.storyboard @@ -667,42 +667,6 @@ A0 09 9A FF A8 8A 09 99 - diff --git a/Signal/src/view controllers/FingerprintViewController.h b/Signal/src/view controllers/FingerprintViewController.h index 3d3100d75..bdc53970f 100644 --- a/Signal/src/view controllers/FingerprintViewController.h +++ b/Signal/src/view controllers/FingerprintViewController.h @@ -14,28 +14,29 @@ - (void)configWithThread:(TSThread*)thread; -@property (nonatomic, strong) IBOutlet UILabel * presentationLabel; +@property (nonatomic, strong) IBOutlet UILabel *presentationLabel; -@property (nonatomic, strong) IBOutlet UIView *myFingerprintView; -@property (nonatomic, strong) IBOutlet UIView *theirFingerprintView; +@property (nonatomic, strong) IBOutlet UIView *myFingerprintView; +@property (nonatomic, strong) IBOutlet UIView *theirFingerprintView; -@property (nonatomic, strong) IBOutlet UIImageView * contactImageView; -@property (nonatomic, strong) IBOutlet UILabel * contactFingerprintTitleLabel; -@property (nonatomic, strong) IBOutlet UILabel * contactFingerprintLabel; +@property (nonatomic, strong) IBOutlet UIImageView *contactImageView; +@property (nonatomic, strong) IBOutlet UILabel *contactFingerprintTitleLabel; +@property (nonatomic, strong) IBOutlet UILabel *contactFingerprintLabel; -@property (nonatomic, strong) IBOutlet UIImageView * userImageView; -@property (nonatomic, strong) IBOutlet UILabel * userFingerprintTitleLabel; -@property (nonatomic, strong) IBOutlet UILabel * userFingerprintLabel; +@property (nonatomic, strong) IBOutlet UIImageView *userImageView; +@property (nonatomic, strong) IBOutlet UILabel *userFingerprintTitleLabel; +@property (nonatomic, strong) IBOutlet UILabel *userFingerprintLabel; + +@property (nonatomic, strong) IBOutlet UILabel *infoMyFingerprint; +@property (nonatomic, strong) IBOutlet UILabel *infoTheirFingerprint; +@property (nonatomic, strong) IBOutlet UIImageView *infoArrowTop; +@property (nonatomic, strong) IBOutlet UIImageView *infoArrowBottom; + +@property (nonatomic, strong) IBOutlet UIButton *closeButton; +@property (nonatomic, strong) IBOutlet UIView *myFPBorderView; -@property (nonatomic, strong) IBOutlet UILabel * infoMyFingerprint; -@property (nonatomic, strong) IBOutlet UILabel * infoTheirFingerprint; -@property (nonatomic, strong) IBOutlet UIImageView * infoArrowTop; -@property (nonatomic, strong) IBOutlet UIImageView * infoArrowBottom; -@property (nonatomic, strong) IBOutlet UIButton * closeButton; -@property (nonatomic, strong) IBOutlet UIButton * shredMessagesAndContactButton; -@property (nonatomic, strong) IBOutlet UIButton * infoButton; // returns my public identity key as NSData -(NSData*) getMyPublicIdentityKey; diff --git a/Signal/src/view controllers/FingerprintViewController.m b/Signal/src/view controllers/FingerprintViewController.m index 37f890b93..3d8f711c1 100644 --- a/Signal/src/view controllers/FingerprintViewController.m +++ b/Signal/src/view controllers/FingerprintViewController.m @@ -49,6 +49,11 @@ static NSString* const kScanIdentityBarcodeViewSegue = @"ScanIdentityBarcodeView _infoMyFingerprint.text = NSLocalizedString(@"FINGERPRINT_INFO_YOURS", @""); _presentationLabel.text = NSLocalizedString(@"FINGERPRINT_INFO_ABOUT", @""); _userFingerprintTitleLabel.text = NSLocalizedString(@"FINGERPRINT_YOURS",@""); + + if ([UIScreen mainScreen].bounds.size.height <= 480) { + self.presentationLabel.hidden = YES; + self.myFPBorderView.hidden = YES; + } } - (void)viewWillAppear:(BOOL)animated