am 0b24b1d3: Merge "Pass changed NetworkInfo to LocationProvider." into jb-mr1-dev
* commit '0b24b1d37a955a0674a31d4da9ee1d0357a1d7f8': Pass changed NetworkInfo to LocationProvider.
This commit is contained in:
@@ -1804,9 +1804,8 @@ public class LocationManagerService extends ILocationManager.Stub implements Run
|
||||
mNetworkState = LocationProvider.TEMPORARILY_UNAVAILABLE;
|
||||
}
|
||||
|
||||
final ConnectivityManager connManager = (ConnectivityManager) context
|
||||
.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
final NetworkInfo info = connManager.getActiveNetworkInfo();
|
||||
final NetworkInfo info = intent.getParcelableExtra(
|
||||
ConnectivityManager.EXTRA_NETWORK_INFO);
|
||||
|
||||
// Notify location providers of current network state
|
||||
synchronized (mLock) {
|
||||
|
||||
Reference in New Issue
Block a user