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

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

Merge "Settings: Hide the data switch if SIM is absent"

parents 41e5d544 eebdd941
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1028,6 +1028,9 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable
            dataEnabledVisible = false;
            disableAtLimitVisible = false;
        }
        if (!TelephonyManager.getDefault().hasIccCard(multiSimGetCurrentSub())) {
            dataEnabledVisible = false;
        }

        // TODO: move enabled state directly into policy
        if (TAB_MOBILE.equals(mCurrentTab) || mCurrentTab.startsWith(TAB_SIM)) {