فهرست منبع

a location's accuracy is allowed to be 0, only negative values are invalid

cyberta 5 سال پیش
والد
کامیت
d80c6e30a5
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      deltachat-ios/Helper/LocationManager.swift

+ 1 - 2
deltachat-ios/Helper/LocationManager.swift

@@ -112,8 +112,7 @@ class LocationManager: NSObject, CLLocationManagerDelegate {
     }
 
     func hasValidAccuracy(newLocation: CLLocation) -> Bool {
-//        logger.debug("LOCATION: hasValidAccuracy: \(newLocation.horizontalAccuracy > 0)")
-        return newLocation.horizontalAccuracy > 0
+        return newLocation.horizontalAccuracy >= 0
     }
 
     func isSignificantlyMoreAccurate(newLocation: CLLocation, lastLocation: CLLocation) -> Bool {