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

Commit e0e6b54b authored by Xiangyu/Malcolm Chen's avatar Xiangyu/Malcolm Chen Committed by android-build-merger
Browse files

Merge "Move getPhoneCount implementation back to TelephonyManager." am: 59102af4

am: 7e9d7aad

Change-Id: I6e329a6b3de1e69813bfdc30e4d58e17e4449b00
parents a5c2f666 7e9d7aad
Loading
Loading
Loading
Loading
+0 −22
Original line number Diff line number Diff line
@@ -179,28 +179,6 @@ public class PhoneConfigurationManager {
        }
    }

    /**
     * Get how many sims have been activated on the phone
     * NOTE: In order to support more than 3 sims, we need to change this method.
     */
    public int getNumOfActiveSims() {
        String mSimConfig =
                SystemProperties.get(TelephonyProperties.PROPERTY_MULTI_SIM_CONFIG);
        int numOfSims;
        switch (mSimConfig) {
            case TSTS:
                numOfSims = 3;
                break;
            case DSDA:
            case DSDS:
                numOfSims = 2;
                break;
            default:
                numOfSims = 1;
        }
        return numOfSims;
    }

    /**
     * Get whether reboot is required or not after making changes to modem configurations.
     * Return value defaults to true