summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Whitman <brent@arteku.com>2015-09-11 14:32:26 -0700
committerBrent Whitman <brent@arteku.com>2015-09-11 14:32:26 -0700
commit3631e14dd3936b51e94c98b76df6e0823d448777 (patch)
tree9f6ba5448c32e8af183487a487f4e28f0d285a0d
parent7318dfaaec400eeb24fb27ead6f55e3fd3fc1d9f (diff)
downloadqtlocation-mapboxgl-3631e14dd3936b51e94c98b76df6e0823d448777.tar.gz
Fix regression on iOS 8, where map would stop updating if device was rotated while the app was in the background
-rw-r--r--platform/ios/MGLMapView.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index b637f899f2..de55ebef54 100644
--- a/platform/ios/MGLMapView.mm
+++ b/platform/ios/MGLMapView.mm
@@ -367,6 +367,7 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(willTerminate) name:UIApplicationWillTerminateNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sleepGL:) name:UIApplicationDidEnterBackgroundNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(wakeGL:) name:UIApplicationWillEnterForegroundNotification object:nil];
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(wakeGL:) name:UIApplicationDidBecomeActiveNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceiveMemoryWarning) name:UIApplicationDidReceiveMemoryWarningNotification object:nil];
// set initial position