1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 03:25:49 +01:00

Avoid lots of false static analysis warnings

This commit is contained in:
cpfeiffer 2018-09-15 23:30:39 +02:00
parent 08595f4e3d
commit 898165ce0b

View File

@ -339,6 +339,19 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
mGBDevice.sendDeviceUpdateIntent(this);
}
break;
default:
if (mDeviceSupport == null || mGBDevice == null) {
LOG.warn("device support:" + mDeviceSupport + ", device: " + mGBDevice + ", aborting");
} else {
handleAction(intent, action, prefs);
}
break;
}
return START_STICKY;
}
private void handleAction(Intent intent, String action, Prefs prefs) {
switch (action) {
case ACTION_REQUEST_DEVICEINFO:
mGBDevice.sendDeviceUpdateIntent(this);
break;
@ -567,8 +580,6 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
}
break;
}
return START_STICKY;
}
/**