Loading services/core/java/com/android/server/location/LocationBasedCountryDetector.java +4 −7 Original line number Diff line number Diff line Loading @@ -235,18 +235,15 @@ public class LocationBasedCountryDetector extends CountryDetectorBase { * Start a new thread to query the country from Geocoder. */ private synchronized void queryCountryCode(final Location location) { if (location == null) { notifyListener(null); return; } if (mQueryThread != null) return; mQueryThread = new Thread(new Runnable() { @Override public void run() { String countryIso = null; if (location != null) { countryIso = getCountryFromLocation(location); if (location == null) { notifyListener(null); return; } String countryIso = getCountryFromLocation(location); if (countryIso != null) { mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION); } else { Loading Loading
services/core/java/com/android/server/location/LocationBasedCountryDetector.java +4 −7 Original line number Diff line number Diff line Loading @@ -235,18 +235,15 @@ public class LocationBasedCountryDetector extends CountryDetectorBase { * Start a new thread to query the country from Geocoder. */ private synchronized void queryCountryCode(final Location location) { if (location == null) { notifyListener(null); return; } if (mQueryThread != null) return; mQueryThread = new Thread(new Runnable() { @Override public void run() { String countryIso = null; if (location != null) { countryIso = getCountryFromLocation(location); if (location == null) { notifyListener(null); return; } String countryIso = getCountryFromLocation(location); if (countryIso != null) { mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION); } else { Loading