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

Commit 766ab606 authored by Sanket Padawe's avatar Sanket Padawe
Browse files

Fixed data connection toggle crash in Settings.

Bug: 19066882
Change-Id: Ib2c7b55d059ddda0543f11ded039ac82bc036850
parent 906fc417
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1188,6 +1188,12 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable
    private void handleMultiSimDataDialog() {
        final Context context = getActivity();
        final SubscriptionInfo currentSir = getCurrentTabSubInfo(context);

        //If sim has not loaded after toggling data switch, return.
        if (currentSir == null) {
            return;
        }

        final SubscriptionInfo nextSir = mSubscriptionManager.getActiveSubscriptionInfo(
                mSubscriptionManager.getDefaultDataSubId());