mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-27 18:17:33 +01:00
Bangle.js:ActTrk: fix requestTrackObj can be null
This commit is contained in:
parent
9309ac8d38
commit
0ac6da3903
@ -564,7 +564,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
break;
|
break;
|
||||||
case "actTrksList": {
|
case "actTrksList": {
|
||||||
JSONObject requestTrackObj = BangleJSActivityTrack.handleActTrksList(json, getDevice(), getContext());
|
JSONObject requestTrackObj = BangleJSActivityTrack.handleActTrksList(json, getDevice(), getContext());
|
||||||
uartTxJSON("requestActivityTrackLog", requestTrackObj);
|
if (requestTrackObj!=null) uartTxJSON("requestActivityTrackLog", requestTrackObj);
|
||||||
} break;
|
} break;
|
||||||
case "actTrk": {
|
case "actTrk": {
|
||||||
JSONObject requestTrackObj = BangleJSActivityTrack.handleActTrk(json, getDevice(), getContext());
|
JSONObject requestTrackObj = BangleJSActivityTrack.handleActTrk(json, getDevice(), getContext());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user