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

Commit eebdd941 authored by kaiyiz's avatar kaiyiz Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Hide the data switch if SIM is absent

There are two data switches when there is only one sim card, hide
the data switch whose SIM is absent.

CRs-Fixed: 785027

Change-Id: Id61d638879e13394965cd7e220ac640446e782c6
parent 67fffa7b
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)) {