Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Do iosapp token handling in viewDidLoad
Browse files Browse the repository at this point in the history
Doing this work in viewDidAppear meant that it happened every time the
modal debug settings view disappeared (and the map view reappeared).
  • Loading branch information
friedbunny committed Oct 29, 2016
1 parent 2242e54 commit 300720c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions platform/ios/app/MBXViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,7 @@ - (void)viewDidLoad
[self restoreState:nil];

self.debugLoggingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:@"MGLMapboxMetricsDebugLoggingEnabled"];
}

- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];

if ([MGLAccountManager accessToken].length)
{
self.styleIndex = -1;
Expand Down

0 comments on commit 300720c

Please sign in to comment.