Send PROVIDERS_CHANGED broadcast for fused
Now that the fused provider is exposed in LocationManager, it shouldn't be treated specially. Test: manual Change-Id: Ia850bda19becb4df23a66432d57368ac352404d4
This commit is contained in:
@@ -18,7 +18,6 @@ package com.android.server.location.provider;
|
||||
|
||||
import static android.app.compat.CompatChanges.isChangeEnabled;
|
||||
import static android.location.LocationManager.DELIVER_HISTORICAL_LOCATIONS;
|
||||
import static android.location.LocationManager.FUSED_PROVIDER;
|
||||
import static android.location.LocationManager.GPS_PROVIDER;
|
||||
import static android.location.LocationManager.KEY_FLUSH_COMPLETE;
|
||||
import static android.location.LocationManager.KEY_LOCATION_CHANGED;
|
||||
@@ -2332,8 +2331,8 @@ public class LocationProviderManager extends
|
||||
|
||||
// do not send change notifications if we just saw this user for the first time
|
||||
if (wasEnabled != null) {
|
||||
// fused and passive provider never get public updates for legacy reasons
|
||||
if (!FUSED_PROVIDER.equals(mName) && !PASSIVE_PROVIDER.equals(mName)) {
|
||||
// passive provider never get public updates for legacy reasons
|
||||
if (!PASSIVE_PROVIDER.equals(mName)) {
|
||||
Intent intent = new Intent(LocationManager.PROVIDERS_CHANGED_ACTION)
|
||||
.putExtra(LocationManager.EXTRA_PROVIDER_NAME, mName)
|
||||
.putExtra(LocationManager.EXTRA_PROVIDER_ENABLED, enabled)
|
||||
|
||||
Reference in New Issue
Block a user