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

Commit 1eb4567d authored by Basudev Achary Konderpu's avatar Basudev Achary Konderpu Committed by Deepak Kundra
Browse files

IMS: Propagating MMI error string to UI

Whenever there is a exception from lower
layer for MMI request, propagating error
string that comes from lower layer.

Change-Id: I283276a50b29d2333c31fe15229bd42b52183219
CRs-Fixed: 808875
parent 8b58e81c
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1246,13 +1246,14 @@ public final class ImsPhoneMmiCode extends Handler implements MmiCode {
            mState = State.FAILED;

            if (ar.exception instanceof CommandException) {
                CommandException.Error err = ((CommandException)(ar.exception)).getCommandError();
                if (err == CommandException.Error.PASSWORD_INCORRECT) {
                CommandException err = (CommandException) ar.exception;
                if (err.getCommandError() == CommandException.Error.PASSWORD_INCORRECT) {
                    sb.append(mContext.getText(
                            com.android.internal.R.string.passwordIncorrect));
                } else if (err.getMessage() != null) {
                    sb.append(err.getMessage());
                } else {
                    sb.append(mContext.getText(
                            com.android.internal.R.string.mmiError));
                    sb.append(mContext.getText(com.android.internal.R.string.mmiError));
                }
            } else {
                ImsException error = (ImsException) ar.exception;