diff options
author | Jason Wray <jason@mapbox.com> | 2016-10-28 14:43:25 -0700 |
---|---|---|
committer | Jason Wray <friedbunny@users.noreply.github.com> | 2016-10-28 18:02:53 -0700 |
commit | 300720c8c719f976b54a5c01edf816949f62918d (patch) | |
tree | a23454863bf0fbfc4c8663e9d49cb6b96a5c01b2 /platform | |
parent | 2242e5484cc81ef00b3cbf68d98dbcb8cdc16496 (diff) | |
download | qtlocation-mapboxgl-300720c8c719f976b54a5c01edf816949f62918d.tar.gz |
[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).
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/app/MBXViewController.m | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/platform/ios/app/MBXViewController.m b/platform/ios/app/MBXViewController.m index a5503f38ed..e8a78abff1 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; |