We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c68625 commit fe3eacdCopy full SHA for fe3eacd
dfu/src/main/java/no/nordicsemi/android/dfu/DfuBaseService.java
@@ -941,6 +941,10 @@ protected void onHandleIntent(final Intent intent) {
941
}
942
UuidHelper.assignCustomUuids(intent);
943
944
+ if (foregroundService) {
945
+ startForeground();
946
+ }
947
+
948
mDeviceAddress = deviceAddress;
949
mDeviceName = deviceName;
950
mDisableNotification = disableNotification;
@@ -960,9 +964,6 @@ protected void onHandleIntent(final Intent intent) {
960
964
mbrSize = DfuSettingsConstants.SETTINGS_DEFAULT_MBR_SIZE;
961
965
962
966
963
- if (foregroundService) {
- startForeground();
- }
967
sendLogBroadcast(LOG_LEVEL_VERBOSE, "DFU service started");
968
969
/*
0 commit comments