diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2022-12-20 15:31:24 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-12-20 16:59:43 +0100 |
| commit | 3a538acad95d329cb84b03863527146b78f0cc76 (patch) | |
| tree | 1e9f3e31b69ff00c7e51197906d4a22a4b85d5e5 | |
| parent | b8927cb17328cb7479dcd0de25ea71f2d5f96092 (diff) | |
| download | mullvadvpn-3a538acad95d329cb84b03863527146b78f0cc76.tar.xz mullvadvpn-3a538acad95d329cb84b03863527146b78f0cc76.zip | |
MKMapView.setRegion() may call delegate synchronously. Reorder operations
| -rw-r--r-- | ios/MullvadVPN/ConnectViewController.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadVPN/ConnectViewController.swift b/ios/MullvadVPN/ConnectViewController.swift index b4fcafc644..f87ef7680a 100644 --- a/ios/MullvadVPN/ConnectViewController.swift +++ b/ios/MullvadVPN/ConnectViewController.swift @@ -397,9 +397,9 @@ class ConnectViewController: UIViewController, MKMapViewDelegate, RootContainmen } private func setMapRegion(_ region: MKCoordinateRegion, animated: Bool) { - contentView.mapView.setRegion(region, animated: animated) isAnimatingMap = true targetRegion = region + contentView.mapView.setRegion(region, animated: animated) } private func addNotificationController() { |
