This commit is contained in:
Aleksander Nowakowski 2020-02-12 10:15:51 +01:00
parent e4fbb4a98c
commit 1f9b60fc07
1 changed files with 5 additions and 3 deletions

View File

@ -1104,6 +1104,11 @@ public abstract class DfuBaseService extends IntentService implements DfuProgres
}
UuidHelper.assignCustomUuids(intent);
if (foregroundService) {
logi("Starting DFU service in foreground");
startForeground();
}
mDeviceAddress = deviceAddress;
mDeviceName = deviceName;
mDisableNotification = disableNotification;
@ -1131,9 +1136,6 @@ public abstract class DfuBaseService extends IntentService implements DfuProgres
mbrSize = 0;
}
if (foregroundService) {
startForeground();
}
sendLogBroadcast(LOG_LEVEL_VERBOSE, "DFU service started");
/*