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

Commit 69702195 authored by Taesu Lee's avatar Taesu Lee
Browse files

Map RadioTechnologyFamily to radio type correctly



Bug: 171531258
Test: Manual

Signed-off-by: default avatarTaesu Lee <taesu82.lee@samsung.com>
Change-Id: If1f21456a5516cbdacb903c21ad9f19ad23c473a
parent f832dd72
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.hardware.radio.V1_0.LceStatusInfo;
import android.hardware.radio.V1_0.NeighboringCell;
import android.hardware.radio.V1_0.RadioError;
import android.hardware.radio.V1_0.RadioResponseInfo;
import android.hardware.radio.V1_0.RadioTechnologyFamily;
import android.hardware.radio.V1_0.SendSmsResult;
import android.hardware.radio.V1_0.VoiceRegStateResult;
import android.hardware.radio.V1_4.CarrierRestrictionsWithPriority;
@@ -1290,7 +1291,12 @@ public class RadioResponse extends IRadioResponse.Stub {
     */
    public void getImsRegistrationStateResponse(RadioResponseInfo responseInfo,
                                                boolean isRegistered, int ratFamily) {
        responseInts(responseInfo, isRegistered ? 1 : 0, ratFamily);
        responseInts(
                responseInfo,
                isRegistered ? 1 : 0,
                ratFamily == RadioTechnologyFamily.THREE_GPP
                        ? PhoneConstants.PHONE_TYPE_GSM
                        : PhoneConstants.PHONE_TYPE_CDMA);
    }

    /**