diff options
author | Julian Rex <julian.rex@mapbox.com> | 2019-04-16 13:16:41 -0400 |
---|---|---|
committer | Julian Rex <julian.rex@mapbox.com> | 2019-04-16 13:16:41 -0400 |
commit | faa81dc4029666c32dcfab90c5f04198b99da075 (patch) | |
tree | cd81ef1cc493d9b891fcbfeb85b0695760f6835c | |
parent | e7a25b06da6f30a7a8bb42b3766e833286c76f35 (diff) | |
download | qtlocation-mapboxgl-faa81dc4029666c32dcfab90c5f04198b99da075.tar.gz |
[ios] Move wakeGL, and ensure rendering occurs when inactive.
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 0e075a6fb4..9a0fcd242a 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -1134,7 +1134,7 @@ public: } // Check to ensure rendering doesn't occur in the background - if (([UIApplication sharedApplication].applicationState != UIApplicationStateActive) && + if (([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) && ![self supportsBackgroundRendering]) { return; @@ -1503,12 +1503,12 @@ public: - (void)willEnterForeground:(NSNotification *)notification { - [self wakeGL:notification]; + // Do nothing, currently if wakeGL is called here it's a no-op. } - (void)didBecomeActive:(NSNotification *)notification { -// [self wakeGL:notification]; + [self wakeGL:notification]; self.lastSnapshotImage = nil; } |