From d36ac364cb74beaf4ced4a12e5bbd5eeab8ec008 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Mon, 2 Apr 2018 18:49:12 +0300
Subject: another try to fix navigation from notification
---
Juick/AppDelegate.m | 9 ++++-----
Juick/Supporting Files/Juick-Info.plist | 2 +-
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index 4fa1f92..202ac82 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -84,11 +84,10 @@
NSDictionary *userInfo = response.notification.request.content.userInfo;
NSLog(@"User Info : %@", userInfo);
[self parseNotificationPayload:userInfo];
- UINavigationController *main = (UINavigationController *)self.window.rootViewController;
- [main popToRootViewControllerAnimated:NO];
- if ([main.visibleViewController isKindOfClass:[DiscoverViewController class]]) {
- [main.visibleViewController performSegueWithIdentifier:@"threadViewSegue" sender:main.visibleViewController];
- }
+ UITabBarController *main = (UITabBarController *)self.window.rootViewController;
+ [main setSelectedIndex:0];
+ UINavigationController *discover = (UINavigationController *)[main.viewControllers objectAtIndex:0];
+ [discover performSegueWithIdentifier:@"threadViewSegue" sender:discover];
completionHandler();
}
diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist
index 9a3f0e9..4f3e8a7 100644
--- a/Juick/Supporting Files/Juick-Info.plist
+++ b/Juick/Supporting Files/Juick-Info.plist
@@ -21,7 +21,7 @@
CFBundleSignature
????
CFBundleVersion
- 49
+ 51
ITSAppUsesNonExemptEncryption
LSApplicationCategoryType
--
cgit v1.2.3