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

Commit a5b595a6 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "LocationManagerService: Respect the type of NetworkInfo that was passed" into jellybean

parents a8156d10 8f931a26
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2133,7 +2133,13 @@ public class LocationManagerService extends ILocationManager.Stub implements Run

                final ConnectivityManager connManager = (ConnectivityManager) context
                        .getSystemService(Context.CONNECTIVITY_SERVICE);
                final NetworkInfo info = connManager.getActiveNetworkInfo();
                final NetworkInfo retInfo =
                        (NetworkInfo) intent.getParcelableExtra(ConnectivityManager.EXTRA_NETWORK_INFO);

                // Pull the latest data. Note we cannot use getActiveNetworkInfo() here as this
                // broadcast may be for a different mobile type than the current dominant connection,
                // such as SUPL, and GpsLocationProvider needs to process those.
                final NetworkInfo info = connManager.getNetworkInfo(retInfo.getType());

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