diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casio/gbx100/CasioGBX100DeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casio/gbx100/CasioGBX100DeviceSupport.java index 4729bc04f..3130d72ae 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casio/gbx100/CasioGBX100DeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casio/gbx100/CasioGBX100DeviceSupport.java @@ -203,8 +203,8 @@ public class CasioGBX100DeviceSupport extends Casio2C2DSupport implements Shared public void stepCountDataFetched(int totalCount, int totalCalories, ArrayList data) { LOG.info("Got the following step count data: "); - LOG.info("Total Count: " + totalCount); - LOG.info("Total Calories: " + totalCalories); + LOG.info("Total Count: {}", totalCount); + LOG.info("Total Calories: {}", totalCalories); addGBActivitySamples(data); } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casio/gbx100/FetchStepCountDataOperation.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casio/gbx100/FetchStepCountDataOperation.java index f0afe9a8a..59592772d 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casio/gbx100/FetchStepCountDataOperation.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casio/gbx100/FetchStepCountDataOperation.java @@ -34,7 +34,6 @@ import nodomain.freeyourgadget.gadgetbridge.entities.CasioGBX100ActivitySample; import nodomain.freeyourgadget.gadgetbridge.model.ActivityKind; import nodomain.freeyourgadget.gadgetbridge.service.btle.AbstractBTLEOperation; import nodomain.freeyourgadget.gadgetbridge.service.btle.TransactionBuilder; -import nodomain.freeyourgadget.gadgetbridge.service.devices.casio.gbx100.CasioGBX100DeviceSupport; import nodomain.freeyourgadget.gadgetbridge.service.devices.miband.operations.OperationStatus; import nodomain.freeyourgadget.gadgetbridge.util.GB; @@ -56,7 +55,7 @@ public class FetchStepCountDataOperation extends AbstractBTLEOperation 3) { length = (data[2] & 0xff) | ((data[3] & 0xff) << 8); } - LOG.debug("Response is going to be " + length + " bytes long"); + LOG.debug("Response is going to be {} bytes long", length); GB.updateTransferNotification(null, getContext().getString(R.string.busy_task_fetch_activity_data), true, 10, getContext()); return true; @@ -149,7 +148,7 @@ public class FetchStepCountDataOperation extends AbstractBTLEOperation= data.length) { @@ -263,7 +262,7 @@ public class FetchStepCountDataOperation extends AbstractBTLEOperation