mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 19:45:50 +01:00
Avoid lots of false static analysis warnings
This commit is contained in:
parent
08595f4e3d
commit
898165ce0b
@ -339,6 +339,19 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
|
|||||||
mGBDevice.sendDeviceUpdateIntent(this);
|
mGBDevice.sendDeviceUpdateIntent(this);
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case ACTION_REQUEST_DEVICEINFO:
|
||||||
mGBDevice.sendDeviceUpdateIntent(this);
|
mGBDevice.sendDeviceUpdateIntent(this);
|
||||||
break;
|
break;
|
||||||
@ -567,8 +580,6 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return START_STICKY;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user