mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Use imperial distance units for en_GB
This commit is contained in:
@@ -325,7 +325,11 @@ class LocationDistancePickerScreenNode: ViewControllerTracingNode, UIScrollViewD
|
||||
}
|
||||
|
||||
private func usesMetricSystem() -> Bool {
|
||||
return localeWithStrings(self.presentationData.strings).usesMetricSystem
|
||||
let locale = localeWithStrings(self.presentationData.strings)
|
||||
if locale.identifier.hasSuffix("GB") {
|
||||
return false
|
||||
}
|
||||
return locale.usesMetricSystem
|
||||
}
|
||||
|
||||
func numberOfComponents(in pickerView: UIPickerView) -> Int {
|
||||
|
||||
Reference in New Issue
Block a user