From 300720c8c719f976b54a5c01edf816949f62918d Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Fri, 28 Oct 2016 14:43:25 -0700 Subject: [PATCH] [ios] Do iosapp token handling in viewDidLoad Doing this work in viewDidAppear meant that it happened every time the modal debug settings view disappeared (and the map view reappeared). --- platform/ios/app/MBXViewController.m | 5 ----- 1 file changed, 5 deletions(-) diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index a5503f38e..e8a78abff 100644 --- a/platform/ios/app/MBXViewController.m +++ b/platform/ios/app/MBXViewController.m @@ -140,12 +140,7 @@ typedef NS_ENUM(NSInteger, MBXSettingsMiscellaneousRows) { [self restoreState:nil]; self.debugLoggingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:@"MGLMapboxMetricsDebugLoggingEnabled"]; -} -- (void)viewDidAppear:(BOOL)animated -{ - [super viewDidAppear:animated]; - if ([MGLAccountManager accessToken].length) { self.styleIndex = -1;