Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3b88c7a authored by Stan Chesnutt's avatar Stan Chesnutt Committed by Android (Google) Code Review
Browse files

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

parents c7deeffb 8183aac3
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -97,12 +97,13 @@ 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();
        }
    }

    /**
     * Add the ICountryListener into the listener list.