From bf11775e1092af0e20cc93365f7732eee2a0e332 Mon Sep 17 00:00:00 2001 From: Christine Corbett Date: Sat, 24 Jan 2015 15:40:51 -1000 Subject: [PATCH] Fullscreen image attachment menu. --- Signal/src/view controllers/FullImageViewController.m | 1 + Signal/src/view controllers/MessagesViewController.m | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Signal/src/view controllers/FullImageViewController.m b/Signal/src/view controllers/FullImageViewController.m index 92604c447..c4d1b6bf3 100644 --- a/Signal/src/view controllers/FullImageViewController.m +++ b/Signal/src/view controllers/FullImageViewController.m @@ -210,6 +210,7 @@ self.view.userInteractionEnabled = YES; _isPresenting = NO; }]; + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; }]; } diff --git a/Signal/src/view controllers/MessagesViewController.m b/Signal/src/view controllers/MessagesViewController.m index 316c5e1b7..e8b45b20e 100644 --- a/Signal/src/view controllers/MessagesViewController.m +++ b/Signal/src/view controllers/MessagesViewController.m @@ -634,9 +634,7 @@ typedef enum : NSUInteger { TSAttachmentStream *attStream = (TSAttachmentStream*)attachment; FullImageViewController * vc = [[FullImageViewController alloc] initWithAttachment:attStream fromRect:convertedRect forInteraction:[self interactionAtIndexPath:indexPath]]; - [self presentViewController:vc animated:YES completion:^{ - [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; - }]; + [vc presentFromViewController:self.navigationController]; } } else { DDLogWarn(@"Currently unsupported");