1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-29 12:05:53 +01:00

Bangle.js:actTrk: accommodate "erase" keyword

This commit is contained in:
Ganblejs 2024-03-06 12:15:12 +01:00 committed by José Rebelo
parent e7f8c9e7a6
commit 546102f01f

View File

@ -128,8 +128,9 @@ class BangleJSActivityTrack extends BangleJSDeviceSupport {
private static void writeToRecorderCSV(String lines, File dir, String filename) {
String mode = "append";
if (lines.equals("")) {
if (lines.equals("erase")) {
mode = "write";
lines = "";
}
File outputFile = new File(dir, filename);