mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Bangle.js:actTrk: accommodate "erase" keyword
This commit is contained in:
parent
e7f8c9e7a6
commit
546102f01f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user