mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Bangle.js:actTrk: use last 4 chars of mac in names
... of files
This commit is contained in:
parent
2803c62a7c
commit
5540dc18a4
@ -110,7 +110,7 @@ class BangleJSActivityTrack {
|
||||
//GB.toast(context, "actTrk says hi!", Toast.LENGTH_LONG, GB.INFO);
|
||||
String log = json.getString("log");
|
||||
LOG.debug(log);
|
||||
String filename = "recorder.log" + log + ".csv";
|
||||
String filename = "recorder.log" + log + "-" + device.getName().substring(device.getName().length()-4, device.getName().length()) + ".csv";
|
||||
File dir;
|
||||
try {
|
||||
dir = FileUtils.getExternalFilesDir();
|
||||
@ -593,7 +593,7 @@ class BangleJSActivityTrack {
|
||||
break;
|
||||
}
|
||||
|
||||
String fileName = FileUtils.makeValidFileName("gadgetbridge-" + trackType.toLowerCase() + "-" + summary.getName() + "-" + storedLogObject.getJSONArray("Time").getString(0) + ".gpx");
|
||||
String fileName = FileUtils.makeValidFileName("gadgetbridge-" + trackType.toLowerCase() + "-" + summary.getName() + "-" + device.getName().substring(device.getName().length()-4, device.getName().length()) + ".gpx");
|
||||
File targetFile = new File(FileUtils.getExternalFilesDir(), fileName);
|
||||
|
||||
if (hasGPXReading /*|| hasHRMReading*/) {
|
||||
|
Loading…
Reference in New Issue
Block a user