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

Commit e3ef13ee authored by Jang Hayeong's avatar Jang Hayeong Committed by Brad Ebinger
Browse files

CLIR, CLIP: Send complete message in case of CDMA



Regarding CDMA VoLTE case, when CSFB is occured,
the the error result should be sent to stop the progress bar.
CommandException.Error.REQUEST_NOT_SUPPORTED exception
will be transfered.

Bug: 146531989

Change-Id: Ifda54fe1fd5617e8b51c27c49c72b109cfe2457a
Signed-off-by: default avatarJang Hayeong <hayeong.jang@samsung.com>
parent 7475f600
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -83,6 +83,7 @@ import android.util.Pair;

import com.android.ims.ImsManager;
import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.telephony.CommandException;
import com.android.internal.telephony.cdma.CdmaMmiCode;
import com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager;
import com.android.internal.telephony.dataconnection.DataEnabledSettings;
@@ -2226,6 +2227,9 @@ public class GsmCdmaPhone extends Phone {
            mCi.getCLIR(onComplete);
        } else {
            loge("getOutgoingCallerIdDisplay: not possible in CDMA");
            AsyncResult.forMessage(onComplete, null,
                    new CommandException(CommandException.Error.REQUEST_NOT_SUPPORTED));
            onComplete.sendToTarget();
        }
    }

@@ -2245,6 +2249,9 @@ public class GsmCdmaPhone extends Phone {
                    obtainMessage(EVENT_SET_CLIR_COMPLETE, commandInterfaceCLIRMode, 0, onComplete));
        } else {
            loge("setOutgoingCallerIdDisplay: not possible in CDMA");
            AsyncResult.forMessage(onComplete, null,
                    new CommandException(CommandException.Error.REQUEST_NOT_SUPPORTED));
            onComplete.sendToTarget();
        }
    }

@@ -2260,6 +2267,9 @@ public class GsmCdmaPhone extends Phone {
            mCi.queryCLIP(onComplete);
        } else {
            loge("queryCLIP: not possible in CDMA");
            AsyncResult.forMessage(onComplete, null,
                    new CommandException(CommandException.Error.REQUEST_NOT_SUPPORTED));
            onComplete.sendToTarget();
        }
    }