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

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

Merge "Fix bug in passing argument to switch dsds"

parents c6645cd8 75f6f26a
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 (getNumOfActiveSims() != 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 "