From 7734fbe4b07895ec0cce7f2a180390f2a9fe49e7 Mon Sep 17 00:00:00 2001 From: Ganblejs Date: Wed, 6 Mar 2024 12:04:25 +0100 Subject: [PATCH] Revert "Bangle.js:actTrk:fetch all logs, then parse them" This reverts commit 6b941f9277f70d642cfaa430d3d917ba6b559d17. --- .../banglejs/BangleJSActivityTrack.java | 22 +++---------------- .../banglejs/BangleJSDeviceSupport.java | 8 +++---- 2 files changed, 6 insertions(+), 24 deletions(-) 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 2d9582af1..df0e45f2c 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 @@ -58,15 +58,6 @@ class BangleJSActivityTrack extends BangleJSDeviceSupport { GB.toast(context.getString(R.string.activity_detail_end_label) + " : " + context.getString(R.string.busy_task_fetch_sports_details), Toast.LENGTH_SHORT, GB.INFO); } - static JSONArray makeDeepCopyOfJSONArray(JSONArray tracksList) throws JSONException { - JSONArray tracksListIntact = new JSONArray(); - String[] tmpTracksList = tracksList.join(",").replace("\"","").split(","); // Hacky way to get a sort of deep copy. - for (int i = 0; i