1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 12:56:49 +01:00

Bangle.js:actTrk: add first timestamp to gpx name

This commit is contained in:
Ganblejs 2024-03-18 22:47:40 +01:00 committed by José Rebelo
parent cd2535f49a
commit 2803c62a7c

View File

@ -593,7 +593,7 @@ class BangleJSActivityTrack {
break;
}
String fileName = FileUtils.makeValidFileName("gadgetbridge-" + trackType.toLowerCase() + "-" + summary.getName() + ".gpx");
String fileName = FileUtils.makeValidFileName("gadgetbridge-" + trackType.toLowerCase() + "-" + summary.getName() + "-" + storedLogObject.getJSONArray("Time").getString(0) + ".gpx");
File targetFile = new File(FileUtils.getExternalFilesDir(), fileName);
if (hasGPXReading /*|| hasHRMReading*/) {