mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 10:35:50 +01:00
Bangle.js:actTrk:fix transfer notification
This commit is contained in:
parent
bfa5d94587
commit
40c3eade21
@ -84,7 +84,7 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
|||||||
if (tracksList.length()==0) {
|
if (tracksList.length()==0) {
|
||||||
device.unsetBusyTask();
|
device.unsetBusyTask();
|
||||||
device.sendDeviceUpdateIntent(context);
|
device.sendDeviceUpdateIntent(context);
|
||||||
GB.updateTransferNotification(context.getString(R.string.busy_task_fetch_activity_data), "", false, 100, context);
|
GB.updateTransferNotification(null, "", false, 100, context);
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return tracksList;
|
return tracksList;
|
||||||
@ -124,7 +124,7 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
|||||||
returnArray = new JSONArray().put(stopObj).put(tracksList).put(prevPacketCount);
|
returnArray = new JSONArray().put(stopObj).put(tracksList).put(prevPacketCount);
|
||||||
device.unsetBusyTask();
|
device.unsetBusyTask();
|
||||||
device.sendDeviceUpdateIntent(context);
|
device.sendDeviceUpdateIntent(context);
|
||||||
GB.updateTransferNotification(context.getString(R.string.busy_task_fetch_activity_data), "", false, 100, context);
|
GB.updateTransferNotification(null, "", false, 100, context);
|
||||||
return returnArray;
|
return returnArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ public class BangleJSActivityTrack extends BangleJSDeviceSupport {
|
|||||||
if (tracksList.length()==0) {
|
if (tracksList.length()==0) {
|
||||||
device.unsetBusyTask();
|
device.unsetBusyTask();
|
||||||
device.sendDeviceUpdateIntent(context);
|
device.sendDeviceUpdateIntent(context);
|
||||||
GB.updateTransferNotification(context.getString(R.string.busy_task_fetch_activity_data), "", false, 100, context);
|
GB.updateTransferNotification(null, "", false, 100, context);
|
||||||
int resetPacketCount = -1;
|
int resetPacketCount = -1;
|
||||||
LOG.info("packetCount reset1: " + resetPacketCount);
|
LOG.info("packetCount reset1: " + resetPacketCount);
|
||||||
returnArray = new JSONArray().put(null).put(tracksList).put(resetPacketCount);
|
returnArray = new JSONArray().put(null).put(tracksList).put(resetPacketCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user