mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 21:06:50 +01:00
Xiaomi: Send device update intent on activity fetch start and finish
This commit is contained in:
parent
e40b703678
commit
5316a7dcf8
@ -136,6 +136,7 @@ public class XiaomiActivityFileFetcher {
|
||||
final Context context = support.getContext();
|
||||
GB.updateTransferNotification(context.getString(R.string.busy_task_fetch_activity_data),"", true, 0, context);
|
||||
support.getDevice().setBusyTask(context.getString(R.string.busy_task_fetch_activity_data));
|
||||
support.getDevice().sendDeviceUpdateIntent(support.getContext());
|
||||
triggerNextFetch();
|
||||
}
|
||||
}
|
||||
@ -148,6 +149,7 @@ public class XiaomiActivityFileFetcher {
|
||||
isFetching = false;
|
||||
mHealthService.getSupport().getDevice().unsetBusyTask();
|
||||
GB.updateTransferNotification(null, "", false, 100, mHealthService.getSupport().getContext());
|
||||
mHealthService.getSupport().getDevice().sendDeviceUpdateIntent(mHealthService.getSupport().getContext());
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user