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

Commit bd4b190b authored by Raj Yengisetty's avatar Raj Yengisetty Committed by Gerrit Code Review
Browse files

SystemUI: CellularTile support multi-sim

Change-Id: I6f2ee24e512260f90036376ef7763c87f048922d
parent 701bc3ed
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -198,8 +198,10 @@ public class MobileDataController {

    public boolean isMobileDataSupported() {
        // require both supported network and ready SIM
        int prfDataPhoneId = SubscriptionManager.getPhoneId(
                SubscriptionManager.getDefaultDataSubId());
        return mConnectivityManager.isNetworkSupported(TYPE_MOBILE)
                && mTelephonyManager.getSimState() == SIM_STATE_READY;
                && mTelephonyManager.getSimState(prfDataPhoneId) == SIM_STATE_READY;
    }

    public boolean isMobileDataEnabled() {