After user edit the track. Update recorded track statistics immediately and update recording track statistics in track recording service.

Change some code style.
This commit is contained in:
youtaol
2013-10-23 17:14:45 +08:00
parent d64b1c74f4
commit c68ec5ed9a
8 changed files with 83 additions and 116 deletions
@@ -0,0 +1,2 @@
package com.google.android.apps.mytracks.content;
parcelable Track;
@@ -16,6 +16,7 @@
package com.google.android.apps.mytracks.services;
import com.google.android.apps.mytracks.content.WaypointCreationRequest;
import com.google.android.apps.mytracks.content.Track;
/**
* MyTracks service.
@@ -108,10 +109,9 @@ interface ITrackRecordingService {
int getSensorState();
/**
* Updates the calorie value.
* Updates the TripStatistics of current recording track.
*
* @param calorieTotal the calorie value of entire track
* @param calorieCurrentSegment the calorie value of current segment
* @param track the current recording track
*/
void updateCalorie(double calorieTotal, double calorieCurrentSegment);
void updateTripStatistics(in Track track);
}