DO NOT MERGE: Update location icon on changes

Ensure that appops monitoring is updated whenever the high power state
of a locaiton request could possibly have changed.

Bug: 161941573
Test: manual + presubmit
Change-Id: I5d30d2ca109d6808511b68a56f790ef0826ef562
This commit is contained in:
Soonil Nagarkar
2020-08-24 15:57:45 -07:00
parent 70c2974749
commit e085352bd8

View File

@@ -1586,6 +1586,7 @@ public class LocationManagerService extends ILocationManager.Stub {
} }
record.mRequest = locationRequest; record.mRequest = locationRequest;
record.mReceiver.updateMonitoring(true);
requests.add(locationRequest); requests.add(locationRequest);
if (!locationRequest.isLowPowerMode()) { if (!locationRequest.isLowPowerMode()) {
providerRequest.setLowPowerMode(false); providerRequest.setLowPowerMode(false);