diff options
author | Ilya Grechuhin <i.grechuhin@mapswithme.com> | 2015-07-15 16:57:27 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:55:53 +0300 |
commit | 81126dcc04b34db62777fcfc88e3c144366776e5 (patch) | |
tree | 5d03bac0d6da17b796b9ae929d6c03ecc1e4b59f /iphone/Maps/Classes/CustomAlert | |
parent | ab2c4eccf3c02f1ccbdcb3bea9042479ea1bf452 (diff) |
[ios] Workaround for app crash on launch/relaunch with denied location.
Diffstat (limited to 'iphone/Maps/Classes/CustomAlert')
-rw-r--r-- | iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm index 7f4d62ad74..9869bb603e 100644 --- a/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm +++ b/iphone/Maps/Classes/CustomAlert/AlertController/MWMAlertViewController.mm @@ -44,7 +44,12 @@ static NSString * const kAlertControllerNibIdentifier = @"MWMAlertViewController - (void)presentLocationAlert { - [self displayAlert:MWMAlert.locationAlert]; + dispatch_async(dispatch_get_main_queue(), ^ + { + // @TODO Remove dispatch on LocationManager -> MWMLocationManager + // Test case when location is denied by user on app launch/relaunch + [self displayAlert:MWMAlert.locationAlert]; + }); } - (void)presentFacebookAlert |