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

Commit 0c310a13 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "WLAN: Fix SIM2 can be selected in single card mode issue."

parents bae2c94a 78add889
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import android.os.Handler;
import android.os.UserHandle;
import android.security.Credentials;
import android.security.KeyStore;
import android.telephony.TelephonyManager;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
@@ -758,7 +759,13 @@ public class WifiConfigController implements TextWatcher,
    }

    private void checkEapSimInfo() {
        for(int i = 0; i < mWifiEapSimInfo.mNumOfSims; i++) {
        int numOfSims;
        if (TelephonyManager.getDefault().isMultiSimEnabled()) {
            numOfSims = mWifiEapSimInfo.mNumOfSims;
        } else {
            numOfSims = 1;
        }
        for (int i = 0; i < numOfSims; i++) {
            String displayname = MultiSimSettingTab.getMultiSimName(mContext, i);
            mSimDisplayNames.add(displayname);
            if (mWifiEapSimInfo.mSimTypes.get(i) == WifiEapSimInfo.SIM_2G) {