am f3b88c7a: Merge "Simplistic fix for initialization race" into klp-dev
* commit 'f3b88c7a420df1877cb3ea2b38094da72353bd31': Simplistic fix for initialization race
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user