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

Commit 5544e5fc authored by Marcos Marado's avatar Marcos Marado
Browse files

MSIM: behave as single SIM when appropriate

On 'About phone' multi-SIM devices show network info for each SIM
slot even if there's no SIM available. With this change, if the
device has less than two SIMs it behaves as a single SIM device.

Change-Id: Id45b8f7b1b3f7d47b882e49ccaf35ac28561a57f
parent 3313c6ce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import android.telephony.PhoneNumberUtils;
import android.telephony.PhoneStateListener;
import android.telephony.ServiceState;
import android.telephony.TelephonyManager;
import android.telephony.SubscriptionManager;
import android.text.TextUtils;
import android.view.MenuItem;
import android.view.View;
@@ -674,7 +675,7 @@ public class Status extends PreferenceActivity {
    }

    private boolean isMultiSimEnabled() {
        return (TelephonyManager.getDefault().getPhoneCount() > 1);
        return (SubscriptionManager.getActiveSubInfoCount() > 1);
    }

    private String getSerialNumber() {