Commit 4d76840e by Demid Merzlyakov

Only prompt for location access on the Onboarding screen if no locations are set up.

parent 0960a937
......@@ -30,7 +30,9 @@ class OnboardingViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
closing = false
promptForLocationAccess()
if !locationManager.hasLocations {
promptForLocationAccess()
}
}
var closing = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment