From 72e1c29059be52173f335268496890e4fc9f9697 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 11 Feb 2016 00:44:18 +0200 Subject: Settings: Fix ethernet data usage tab crash * TAB_ETHERNET length is bigger than TAB_MOBILE Change-Id: Ie7feb819978236d62f951825dbc564d683907700 --- src/com/android/settings/DataUsageSummary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/DataUsageSummary.java b/src/com/android/settings/DataUsageSummary.java index 1da268e69..a1648ac85 100644 --- a/src/com/android/settings/DataUsageSummary.java +++ b/src/com/android/settings/DataUsageSummary.java @@ -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 -- cgit v1.2.3