From 1e2ea97391984fe40d6707c12e4642a351bfe020 Mon Sep 17 00:00:00 2001 From: Ganblejs Date: Wed, 13 Mar 2024 00:59:54 +0100 Subject: [PATCH] Bangle.js:actTrk: curly brace to scope cases --- .../devices/banglejs/BangleJSDeviceSupport.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java index c1f836835..bfe2437b6 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java @@ -562,14 +562,14 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport { case "act": handleActivity(json); break; - case "actTrksList": + case "actTrksList": { JSONObject requestTrackObj = BangleJSActivityTrack.handleActTrksList(json, getDevice(), getContext()); uartTxJSON("requestActivityTrackLog", requestTrackObj); - break; - case "actTrk": - requestTrackObj = BangleJSActivityTrack.handleActTrk(json, getDevice(), getContext()); + } break; + case "actTrk": { + JSONObject requestTrackObj = BangleJSActivityTrack.handleActTrk(json, getDevice(), getContext()); if (requestTrackObj!=null) uartTxJSON("requestActivityTrackLog", requestTrackObj); - break; + } break; case "http": handleHttp(json); break;