From e2ac87809468e9487389e5d22ab9766996898478 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 9 Dec 2017 00:08:02 +0300 Subject: some drunk fixes --- Juick/LaunchScreen.storyboard | 8 ++++---- Juick/Supporting Files/Juick-Info.plist | 2 +- Juick/ViewControllers/DiscoverViewController.m | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Juick/LaunchScreen.storyboard b/Juick/LaunchScreen.storyboard index e0a196b..be5fe7e 100644 --- a/Juick/LaunchScreen.storyboard +++ b/Juick/LaunchScreen.storyboard @@ -1,11 +1,11 @@ - + - + @@ -25,8 +25,8 @@ - - + + diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist index f544bf8..1415672 100644 --- a/Juick/Supporting Files/Juick-Info.plist +++ b/Juick/Supporting Files/Juick-Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 1.0.29 + 1.0.31 ITSAppUsesNonExemptEncryption LSApplicationCategoryType diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index 3822643..4a36cfe 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -23,7 +23,9 @@ AppDelegate *appDelegate; -(void) viewDidLoad { [super viewDidLoad]; appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate; - [self performSegueWithIdentifier:@"threadViewSegue" sender:self]; + if (appDelegate.pushedThread != nil) { + [self performSegueWithIdentifier:@"threadViewSegue" sender:self]; + } } -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { @@ -37,6 +39,7 @@ AppDelegate *appDelegate; NSNumber *mid; if (appDelegate.pushedThread != nil) { mid = appDelegate.pushedThread; + appDelegate.pushedThread = nil; } else { Message *msg = [self.messages objectAtIndex:[self.tableView indexPathForSelectedRow].row]; mid = msg.mid; -- cgit v1.2.3