mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +01:00
Bangle.js:actTrk:dont apnd device mac str to files
This commit is contained in:
parent
5c183da78c
commit
ac4273fc1b
@ -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 + "-" + device.getName().substring(device.getName().length()-4, device.getName().length()) + ".csv";
|
||||
String filename = "recorder.log" + log + ".csv";
|
||||
File dir;
|
||||
try {
|
||||
dir = new File(FileUtils.getExternalFilesDir() + "/" + FileUtils.makeValidFileName(device.getName()));
|
||||
@ -598,7 +598,7 @@ class BangleJSActivityTrack {
|
||||
break;
|
||||
}
|
||||
|
||||
String fileName = FileUtils.makeValidFileName("gadgetbridge-" + trackType.toLowerCase() + "-" + summary.getName() + "-" + device.getName().substring(device.getName().length()-4, device.getName().length()) + ".gpx");
|
||||
String fileName = FileUtils.makeValidFileName("gadgetbridge-" + trackType.toLowerCase() + "-" + summary.getName() + ".gpx");
|
||||
dir = new File(FileUtils.getExternalFilesDir() + "/" + FileUtils.makeValidFileName(device.getName()));
|
||||
File targetFile = new File(dir, fileName);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user