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

Commit 5a9f4473 authored by Chen Xu's avatar Chen Xu Committed by Android (Google) Code Review
Browse files

Merge "SDK API doesSwitchModemConfigTriggerReboot"

parents d4f24dd9 4f379d29
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.Settings;
import android.provider.Telephony;
import android.telephony.CarrierConfigManager;
import android.telephony.CellIdentityCdma;
import android.telephony.CellIdentityGsm;
@@ -89,7 +88,6 @@ import com.android.ims.ImsConfig;
import com.android.ims.ImsException;
import com.android.ims.ImsManager;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.PhoneConfigurationManager;
import com.android.internal.telephony.PhoneFactory;

import java.io.IOException;
@@ -471,7 +469,7 @@ public class RadioInfo extends Activity {
        if (isDsdsSupported()) {
            dsdsSwitch.setVisibility(View.VISIBLE);
            dsdsSwitch.setOnClickListener(v -> {
                if (mTelephonyManager.isRebootRequiredForModemConfigChange()) {
                if (mTelephonyManager.doesSwitchMultiSimConfigTriggerReboot()) {
                    // Undo the click action until user clicks the confirm dialog.
                    dsdsSwitch.toggle();
                    showDsdsChangeDialog();