Export/import test now verifies the TrackPoints.

This commit is contained in:
Dennis Guse
2020-06-22 21:56:22 +02:00
parent de376a84f8
commit ecdb509371
4 changed files with 96 additions and 27 deletions
@@ -323,7 +323,7 @@ abstract class AbstractFileTrackImporter extends DefaultHandler implements Track
// Check for negative time change
if (timeDifference <= 0) {
Log.w(TAG, "Time difference not postive.");
Log.w(TAG, "Time difference not positive.");
} else {
/*
@@ -389,9 +389,8 @@ abstract class AbstractFileTrackImporter extends DefaultHandler implements Track
Uri photoUri = FileUtils.getUriForFile(context, file);
return "" + photoUri;
}
else {
return null;
}
return null;
}
/**
@@ -229,7 +229,7 @@ public class KmlFileTrackImporter extends AbstractFileTrackImporter {
trackPoint.setCyclingCadence_rpm(cadenceList.get(i));
}
if (i < powerList.size()) {
trackPoint.setPower(cadenceList.get(i));
trackPoint.setPower(powerList.get(i));
}
insertTrackPoint(trackPoint);