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

Commit 821bd808 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Pass changed NetworkInfo to LocationProvider.

LocationProviders often rely on non-default networks, so pass the
network that actually changed, instead of the default.

Bug: 6929692
Change-Id: I31d9eec792e07259282aa1bb57ec66c01962df64
parent 187019c5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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) {