()
| 57 | } |
| 58 | |
| 59 | @SuppressLint("MissingPermission") |
| 60 | public static Location getLocation() { |
| 61 | if (location == null) { |
| 62 | String bestP = locationManager.getBestProvider(getCri(), true); |
| 63 | location = locationManager.getLastKnownLocation(bestP); |
| 64 | } |
| 65 | return location; |
| 66 | } |
| 67 | |
| 68 | public static void setLocation(Location location) { |
| 69 | LocationUtils.location = location; |