Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ec77aae authored by Pavel Zhamaitsiak's avatar Pavel Zhamaitsiak Committed by android-build-merger
Browse files

Merge "Propagate CODE_UT_SERVICE_UNAVAILABLE from IMS stack." into lmp-mr1-wfc-dev

automerge: 5aef6acc

* commit '5aef6acc':
  Propagate CODE_UT_SERVICE_UNAVAILABLE from IMS stack.
parents 3da65631 5aef6acc
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -887,6 +887,8 @@ public class ImsPhone extends ImsPhoneBase {
            case ImsReasonInfo.CODE_UT_CB_PASSWORD_MISMATCH:
                error = CommandException.Error.PASSWORD_INCORRECT;
                break;
            case ImsReasonInfo.CODE_UT_SERVICE_UNAVAILABLE:
                error = CommandException.Error.RADIO_NOT_AVAILABLE;
            default:
                break;
        }
@@ -1093,18 +1095,10 @@ public class ImsPhone extends ImsPhoneBase {
    sendResponse(Message onComplete, Object result, Throwable e) {
        if (onComplete != null) {
            CommandException ex = null;
            ImsException imsEx = null;
            if (e != null) {
                if (e instanceof ImsException) {
                    imsEx = (ImsException) e;
                    AsyncResult.forMessage(onComplete, result, imsEx);
                } else {
                ex = getCommandException(e);
                    AsyncResult.forMessage(onComplete, result, ex);
                }
            } else {
                AsyncResult.forMessage(onComplete, result, null);
            }
            AsyncResult.forMessage(onComplete, result, ex);
            onComplete.sendToTarget();
        }
    }