Merge "Simplistic fix for initialization race" into klp-dev

This commit is contained in:
Stan Chesnutt
2013-09-06 23:52:33 +00:00
committed by Android (Google) Code Review

View File

@@ -97,11 +97,12 @@ public class CountryDetectorService extends ICountryDetector.Stub implements Run
}
@Override
public Country detectCountry() throws RemoteException {
public Country detectCountry() {
if (!mSystemReady) {
throw new RemoteException();
return null; // server not yet active
} else {
return mCountryDetector.detectCountry();
}
return mCountryDetector.detectCountry();
}
/**