This commit is contained in:
Dennis Guse
2023-11-24 07:11:07 +01:00
parent 5dbd17f3bb
commit 25d4daa295
4 changed files with 1 additions and 13 deletions
@@ -416,8 +416,7 @@ public class TrackDataHub {
* *
* @param track the track * @param track the track
*/ */
//TODO Could be @NonNull void onTrackUpdated(@NonNull Track track);
void onTrackUpdated(Track track);
/** /**
* Called to clear previously-sent track points. * Called to clear previously-sent track points.
@@ -38,15 +38,6 @@ public record Speed(double speed_mps) {
return speed2; return speed2;
} }
public static Speed absDiff(Speed speed1, Speed speed2) {
//TODO Why Math.abs? Seems to be a leftover.
return Speed.of(Math.abs(speed1.speed_mps - speed2.speed_mps));
}
public Speed mul(double factor) {
return new Speed(factor * speed_mps);
}
public boolean isZero() { public boolean isZero() {
return speed_mps == 0; return speed_mps == 0;
} }
@@ -49,7 +49,6 @@ public class ImportViewModel extends AndroidViewModel implements ImportServiceRe
private void loadData(List<DocumentFile> documentFiles) { private void loadData(List<DocumentFile> documentFiles) {
List<ArrayList<DocumentFile>> nestedFileList = documentFiles.stream() List<ArrayList<DocumentFile>> nestedFileList = documentFiles.stream()
.map(FileUtils::getFiles) .map(FileUtils::getFiles)
// TODO flatMap(Collection::stream) fails with ClassCastException; try in the future again
.collect(Collectors.toList()); .collect(Collectors.toList());
List<DocumentFile> fileList = new ArrayList<>(); List<DocumentFile> fileList = new ArrayList<>();
@@ -75,7 +75,6 @@ public class ListItemUtils {
// Match list_item_time_distance in list_item.xml // Match list_item_time_distance in list_item.xml
String time = StringUtils.formatElapsedTime(totalTime); String time = StringUtils.formatElapsedTime(totalTime);
// TODO unit system
String distance = DistanceFormatter.Builder() String distance = DistanceFormatter.Builder()
.setUnit(unitSystem) .setUnit(unitSystem)
.build(context) .build(context)