Skip to content

Commit

Permalink
Invoke the method in the trip machine receiver that logs the battery …
Browse files Browse the repository at this point in the history
…and simulate the user

We should really clean this up:
e-mission#12
  • Loading branch information
shankari committed Mar 28, 2016
1 parent 8b69908 commit 8c09394
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/android/ServerSyncAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public void onPerformSync(Account account, Bundle extras, String authority,
* geofences are never exited.
*/
TripDiaryStateMachineReceiver.validateAndCleanupState(cachedContext);
TripDiaryStateMachineReceiver.saveBatteryAndSimulateUser(cachedContext);
// We are sending this only locally, so we don't care about the URI and so on.
Intent localIntent = new Intent("edu.berkeley.eecs.emission.sync.NEW_DATA");
Bundle b = new Bundle();
Expand Down

0 comments on commit 8c09394

Please sign in to comment.