mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-07-22 06:41:06 +02:00
Bangle.js:actTrk: no timeout during data-parsing
This commit is contained in:
parent
8ab77f148f
commit
49bd363d0f
|
@ -246,6 +246,7 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void parseFetchedRecorderCSV(File dir, String filename, String log, GBDevice device, Context context) {
|
private static void parseFetchedRecorderCSV(File dir, String filename, String log, GBDevice device, Context context) {
|
||||||
|
stopTimeoutTask(); // Parsing can take a while if there are many data. Restart at end of parsing.
|
||||||
|
|
||||||
File inputFile = new File(dir, filename);
|
File inputFile = new File(dir, filename);
|
||||||
try { // FIXME: There is maybe code inside this try-statement that should be outside of it.
|
try { // FIXME: There is maybe code inside this try-statement that should be outside of it.
|
||||||
|
@ -724,6 +725,8 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stopAndRestartTimeout(device,context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user