Skip to content

Commit c357518

Browse files
committed
Add fused location provider to real provider list
During testing it's possible to mock a location provider, but the fused location provider wasn't being inserted into the "mRealProviders" map so when the fused location provider was unmocked, it would disappear permanently from the list until the next reboot. Bug: 6949478 Change-Id: I4993aa7fbbd21cea16bdbf2722d637c909b1cd73
1 parent 3b9e7f3 commit c357518

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ Load package name(s) containing location provider support.
308308
addProviderLocked(fusedLocationProvider);
309309
mProxyProviders.add(fusedLocationProvider);
310310
mEnabledProviders.add(fusedLocationProvider.getName());
311+
mRealProviders.put(LocationManager.FUSED_PROVIDER, fusedLocationProvider);
311312
} else {
312313
Slog.e(TAG, "no fused location provider found",
313314
new IllegalStateException("Location service needs a fused location provider"));

0 commit comments

Comments
 (0)