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

Commit 579e3ca0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Initialize CallForwardInfo correctly."

parents 65149054 c95d8bc1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1471,12 +1471,12 @@ public class RadioResponse extends IRadioResponse.Stub {
                                         ArrayList<android.hardware.radio.V1_0.CallForwardInfo>
                                                 callForwardInfos) {
        RILRequest rr = mRil.processResponse(responseInfo);

        if (rr != null) {
            CallForwardInfo[] ret = null;
            if (responseInfo.error == RadioError.NONE) {
                ret = new CallForwardInfo[callForwardInfos.size()];
                for (int i = 0; i < callForwardInfos.size(); i++) {
                    ret[i] = new CallForwardInfo();
                    ret[i].status = callForwardInfos.get(i).status;
                    ret[i].reason = callForwardInfos.get(i).reason;
                    ret[i].serviceClass = callForwardInfos.get(i).serviceClass;