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

Commit 72e1c290 authored by Michael Bestas's avatar Michael Bestas Committed by Gerrit Code Review
Browse files

Settings: Fix ethernet data usage tab crash

* TAB_ETHERNET length is bigger than TAB_MOBILE

Change-Id: Ie7feb819978236d62f951825dbc564d683907700
parent c9030866
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -903,7 +903,7 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable
        mBinding = false;

        int seriesColor = context.getColor(R.color.sim_noitification);
        if (mCurrentTab != null && mCurrentTab.length() > TAB_MOBILE.length() ){
        if (mCurrentTab != null && mCurrentTab.startsWith(TAB_MOBILE)) {
            final int slotId = Integer.parseInt(mCurrentTab.substring(TAB_MOBILE.length(),
                    mCurrentTab.length()));
            final SubscriptionInfo sir = mSubscriptionManager