forked from upstream-mirrors/OpenTracks
Track recording service handles the status of recording: track's id, pause and GPS status.
Created an interface for all components that want to know about recording status through the service. All interface's methods are optional so every component can implement what they need. Fixes #388.
This commit is contained in:
@@ -362,9 +362,9 @@ public class ContentProviderUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return -1 if not able to get the next marker number.
|
||||
* @return null if not able to get the next marker number.
|
||||
*/
|
||||
public int getNextMarkerNumber(@NonNull Track.Id trackId) {
|
||||
public Integer getNextMarkerNumber(@NonNull Track.Id trackId) {
|
||||
String[] projection = {MarkerColumns._ID};
|
||||
String selection = MarkerColumns.TRACKID + "=?";
|
||||
String[] selectionArgs = new String[]{Long.toString(trackId.getId())};
|
||||
@@ -373,7 +373,7 @@ public class ContentProviderUtils {
|
||||
return cursor.getCount();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
return null;
|
||||
}
|
||||
|
||||
public Marker getMarker(@NonNull Marker.Id markerId) {
|
||||
|
||||
Reference in New Issue
Block a user