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

Commit 2896562f authored by Nazanin Bakhshi's avatar Nazanin Bakhshi Committed by Android (Google) Code Review
Browse files

Merge "Fix bug in passing argument to switch dsds"

parents 7406134f ddea9005
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.internal.telephony;

import android.content.Context;
import android.os.AsyncResult;
import android.os.Handler;
import android.os.Message;
import android.os.PowerManager;
@@ -97,11 +98,12 @@ public class PhoneConfigurationManager {
        public void handleMessage(Message msg) {
            switch (msg.what) {
                case EVENT_SWITCH_DSDS_CONFIG_DONE:
                    if (msg.obj != null) {
                    AsyncResult ar = (AsyncResult) msg.obj;
                    if (ar != null && ar.exception == null) {
                        int numOfLiveModems = msg.arg1;
                        setMultiSimProperties(numOfLiveModems);
                    } else {
                        log(msg.what + " failure. Not switching multi-sim config.");
                        log(msg.what + " failure. Not switching multi-sim config." + ar.exception);
                    }
                    break;
            }
@@ -167,7 +169,7 @@ public class PhoneConfigurationManager {
        }
        if (getPhoneCount() != numOfSims) {
            Message callback = Message.obtain(
                    mHandler, EVENT_SWITCH_DSDS_CONFIG_DONE, numOfSims);
                    mHandler, EVENT_SWITCH_DSDS_CONFIG_DONE, numOfSims, 0 /**dummy arg*/);
            mRadioConfig.setModemsConfig(numOfSims, callback);
        } else {
            log("switchMultiSimConfig: No need to switch. getNumOfActiveSims is already "