use of nodomain.freeyourgadget.gadgetbridge.service.devices.lefun.requests.SendCallNotificationRequest in project Gadgetbridge by Freeyourgadget.
the class LefunDeviceSupport method onSetCallState.
@Override
public void onSetCallState(CallSpec callSpec) {
switch(callSpec.command) {
case CallSpec.CALL_INCOMING:
try {
TransactionBuilder builder = performInitialized(SetTimeRequest.class.getSimpleName());
SendCallNotificationRequest request = new SendCallNotificationRequest(this, builder);
request.setCallNotification(callSpec);
request.perform();
performConnected(builder.getTransaction());
} catch (IOException e) {
GB.toast(getContext(), "Failed to send call notification", Toast.LENGTH_SHORT, GB.ERROR, e);
}
break;
}
}
Aggregations