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

Commit 300720c

Browse files
committed
[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).
1 parent 2242e54 commit 300720c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

platform/ios/app/MBXViewController.m

-5
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,7 @@ - (void)viewDidLoad
140140
[self restoreState:nil];
141141

142142
self.debugLoggingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:@"MGLMapboxMetricsDebugLoggingEnabled"];
143-
}
144143

145-
- (void)viewDidAppear:(BOOL)animated
146-
{
147-
[super viewDidAppear:animated];
148-
149144
if ([MGLAccountManager accessToken].length)
150145
{
151146
self.styleIndex = -1;

0 commit comments

Comments
 (0)