Skip to content

Commit 0b24b1d

Browse files
jsharkeyAndroid (Google) Code Review
authored andcommitted
Merge "Pass changed NetworkInfo to LocationProvider." into jb-mr1-dev
2 parents a70cd04 + 821bd80 commit 0b24b1d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

services/java/com/android/server/LocationManagerService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,9 +1804,8 @@ public void onReceive(Context context, Intent intent) {
18041804
mNetworkState = LocationProvider.TEMPORARILY_UNAVAILABLE;
18051805
}
18061806

1807-
final ConnectivityManager connManager = (ConnectivityManager) context
1808-
.getSystemService(Context.CONNECTIVITY_SERVICE);
1809-
final NetworkInfo info = connManager.getActiveNetworkInfo();
1807+
final NetworkInfo info = intent.getParcelableExtra(
1808+
ConnectivityManager.EXTRA_NETWORK_INFO);
18101809

18111810
// Notify location providers of current network state
18121811
synchronized (mLock) {

0 commit comments

Comments
 (0)