Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Removed usage of private API App-Prefs:root

  • Loading branch information
mahmoud-adam85 committed Sep 10, 2018
1 parent ac16572 commit f23235b055ffd081cbf69a3ad487fdc8d43c55fb
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cliqz/Search/CliqzSearchViewController.swift
@@ -335,7 +335,7 @@ extension CliqzSearchViewController {
} else {
message = NSLocalizedString("To share your location, go to the settings of your smartphone:\n1.Turn on Location Services\n2.Select the CLIQZ App\n3.Enable 'While Using'", tableName: "Cliqz", comment: "Alert message for turning on location service when clicking share location on local card")
settingsAction = UIAlertAction(title: settingsOptionTitle, style: .default) { (_) -> Void in
if let settingsUrl = URL(string: "App-Prefs:root=Privacy&path=LOCATION") {
if let settingsUrl = URL(string: UIApplicationOpenSettingsURLString) {
UIApplication.shared.open(settingsUrl, options: [:], completionHandler: nil)
}
}

0 comments on commit f23235b

Please sign in to comment.