summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mikeioannina@cyanogenmod.org>2016-02-11 00:44:18 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-15 10:07:43 -0800
commit72e1c29059be52173f335268496890e4fc9f9697 (patch)
tree909018ef9828b0670a3d20e341a216cfb751d262
parentc9030866e2e19aed3629ceaee8ebff53b7af115b (diff)
downloadpackages_apps_Settings-72e1c29059be52173f335268496890e4fc9f9697.tar.gz
packages_apps_Settings-72e1c29059be52173f335268496890e4fc9f9697.tar.bz2
packages_apps_Settings-72e1c29059be52173f335268496890e4fc9f9697.zip
Settings: Fix ethernet data usage tab crash
* TAB_ETHERNET length is bigger than TAB_MOBILE Change-Id: Ie7feb819978236d62f951825dbc564d683907700
-rw-r--r--src/com/android/settings/DataUsageSummary.java2
1 files changed, 1 insertions, 1 deletions
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