summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2016-10-28 14:43:25 -0700
committerJason Wray <friedbunny@users.noreply.github.com>2016-10-28 18:02:53 -0700
commit300720c8c719f976b54a5c01edf816949f62918d (patch)
treea23454863bf0fbfc4c8663e9d49cb6b96a5c01b2
parent2242e5484cc81ef00b3cbf68d98dbcb8cdc16496 (diff)
downloadqtlocation-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).
-rw-r--r--platform/ios/app/MBXViewController.m5
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;