Bangle.js:actTrk: remove unrelated comments

This commit is contained in:
Ganblejs 2024-03-06 00:54:57 +01:00 committed by José Rebelo
parent a077e867b4
commit ddca4ad90d
1 changed files with 1 additions and 7 deletions

View File

@ -61,21 +61,15 @@ class BangleJSActivityTrack extends BangleJSDeviceSupport {
private static Timer timeout;
private static TimerTask timeoutTask;
//we are going to use a handler to be able
private static void startTimeout(GBDevice device, Context context) {
//set a new Timer
timeout = new Timer();
//initialize the TimerTask's job
initializeTimeoutTask(device, context);
//schedule the timer, after the first 5000ms the TimerTask will run every 10000ms
timeout.schedule(timeoutTask, 5000); //
timeout.schedule(timeoutTask, 5000);
}
private static void stopTimeoutTask() {
//stop the timer, if it's not already null
if (timeout != null) {
timeout.cancel();
timeout = null;