From a077e867b4becba0c6fa2904142caf73270b6b54 Mon Sep 17 00:00:00 2001 From: Ganblejs Date: Tue, 5 Mar 2024 23:16:49 +0100 Subject: [PATCH] Bangle.js:actTrk:rm newline on latest fetch string --- .../service/devices/banglejs/BangleJSActivityTrack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSActivityTrack.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSActivityTrack.java index fcb30eaf2..e8c91e73e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSActivityTrack.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSActivityTrack.java @@ -109,7 +109,7 @@ class BangleJSActivityTrack extends BangleJSDeviceSupport { File inputFile = new File(dir, filename); String lastSyncedID = ""; try { - lastSyncedID = FileUtils.getStringFromFile(inputFile); + lastSyncedID = FileUtils.getStringFromFile(inputFile).replace("\n",""); } catch (IOException ignored) { } //lastSyncedID = "20230706x"; // DEBUGGING