mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 18:15:49 +01:00
Bangle.js:actTrk: refactor a name
This commit is contained in:
parent
2683fd9495
commit
466349fbe7
@ -5,7 +5,6 @@ import static java.lang.Math.sqrt;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.util.Log;
|
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
@ -71,7 +70,7 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
|||||||
timeout = new Timer();
|
timeout = new Timer();
|
||||||
|
|
||||||
//initialize the TimerTask's job
|
//initialize the TimerTask's job
|
||||||
initializeTimerTask(device, context);
|
initializeTimeoutTask(device, context);
|
||||||
|
|
||||||
//schedule the timer, after the first 5000ms the TimerTask will run every 10000ms
|
//schedule the timer, after the first 5000ms the TimerTask will run every 10000ms
|
||||||
timeout.schedule(timeoutTask, 5000); //
|
timeout.schedule(timeoutTask, 5000); //
|
||||||
@ -85,7 +84,7 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void initializeTimerTask(GBDevice device, Context context) {
|
private static void initializeTimeoutTask(GBDevice device, Context context) {
|
||||||
|
|
||||||
timeoutTask = new TimerTask() {
|
timeoutTask = new TimerTask() {
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user