diff options
author | Julian Rex <julian.rex@mapbox.com> | 2018-02-07 23:16:16 -0500 |
---|---|---|
committer | Julian Rex <julian.rex@mapbox.com> | 2018-02-09 16:33:29 -0500 |
commit | 5ad584af1b041591e2d5f2bb12364b0a890107c5 (patch) | |
tree | e66b6ee84976f9d390c4ee2c7e253ce5cf4bb8e9 | |
parent | cab2086e1c74eeb1fe23c2d4a5e03776be1592b9 (diff) | |
download | qtlocation-mapboxgl-5ad584af1b041591e2d5f2bb12364b0a890107c5.tar.gz |
[ios] Added notification handler for UIApplicationWillResignActiveNotification
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 0849cbd12f..84afc56223 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -536,6 +536,8 @@ public: [[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(sleepGL:) name:UIApplicationWillResignActiveNotification object:nil]; // $$jr missing??? + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceiveMemoryWarning) name:UIApplicationDidReceiveMemoryWarningNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil]; [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications]; |