Skip to content

Commit

Permalink
Removed implicit intent from the fused location provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ted committed Mar 10, 2015
1 parent 4688b9a commit e92d078
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public void onLocationChanged(Location fix)
i.putExtra(DataPoint.VALUE, json.toString());
i.putExtra(DataPoint.DATA_TYPE, SenseDataTypes.JSON);
i.putExtra(DataPoint.TIMESTAMP, timestamp);
i.setPackage(context.getPackageName());
context.startService(i);
distanceEstimator.addPoint(fix);
}
Expand All @@ -200,6 +201,7 @@ public void onReceive(Context context, Intent intent) {
i.putExtra(DataPoint.VALUE, (float) distance);
i.putExtra(DataPoint.DATA_TYPE, SenseDataTypes.FLOAT);
i.putExtra(DataPoint.TIMESTAMP, dataPoint.timeStamp);
i.setPackage(context.getPackageName());
context.startService(i);

// start counting again, from the last location
Expand Down

0 comments on commit e92d078

Please sign in to comment.