TrackStatistics startTime/stopTime is null on creation.

This commit is contained in:
Dennis Guse
2021-01-09 17:45:20 +01:00
parent 1d46981717
commit 912fd1aa2f
4 changed files with 9 additions and 10 deletions
@@ -341,10 +341,6 @@ public class CustomContentProvider extends ContentProvider {
}
private Uri insertTrack(Uri url, ContentValues contentValues) {
boolean hasStartTime = contentValues.containsKey(TracksColumns.STARTTIME);
if (!hasStartTime) {
throw new IllegalArgumentException("Both start time and start id values are required.");
}
long rowId = db.insert(TracksColumns.TABLE_NAME, TracksColumns._ID, contentValues);
if (rowId >= 0) {
return ContentUris.appendId(TracksColumns.CONTENT_URI.buildUpon(), rowId).build();