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

Commit 06b05f66 authored by Umashankar Godachi's avatar Umashankar Godachi Committed by Gerrit - the friendly Code Review server
Browse files

Modify getSimCount api to get the sim count dynamically.

Instead of accessing static sim count value use the dynamically
updated sim count value for getSimCount api.

Change-Id: I5de857e3c34be213b0db8faed083c46bb6fa4c9a
parent 09ecabc3
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -3383,13 +3383,7 @@ public class TelephonyManager {

    /** @hide */
    public int getSimCount() {
        // FIXME Need to get it from Telephony Dev Controller when that gets implemented!
        // and then this method shouldn't be used at all!
        if(isMultiSimEnabled()) {
            return 2;
        } else {
            return 1;
        }
        return getPhoneCount();
    }

    /**