Fix a couple of bugs from the location overhaul.

Marshall LocationRequest array correctly.

Observe reportLocation from FusionEngine.

Actually deliver the setRequest message to fusion engine.

Change-Id: Iff64596fdd42f9fb06e563591dda9fbe0241533a
This commit is contained in:
Nick Pelly
2012-08-10 15:47:53 -07:00
parent 3914e4b7d1
commit 08ca1046fe
5 changed files with 13 additions and 14 deletions

View File

@@ -787,10 +787,6 @@ public class LocationManagerService extends ILocationManager.Stub implements Obs
for (UpdateRecord record : records) {
LocationRequest locationRequest = record.mRequest;
if (providerRequest.locationRequests == null) {
providerRequest.locationRequests = new ArrayList<LocationRequest>();
}
providerRequest.locationRequests.add(locationRequest);
if (locationRequest.getInterval() < providerRequest.interval) {
providerRequest.reportLocation = true;