forked from upstream-mirrors/OpenTracks
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:
@@ -0,0 +1,2 @@
|
||||
package com.google.android.apps.mytracks.content;
|
||||
parcelable Track;
|
||||
+4
-4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user