summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/setupwizard/setup/MobileDataPage.java
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-03-04 13:06:26 -0800
committercretin45 <cretin45@gmail.com>2015-03-04 13:08:00 -0800
commitef4cd78d5f5ca98cb2fdaa9e86d564bacb7f5f45 (patch)
treefe4c0d9d9c958856d789f7d6740274d8516ac4d3 /src/com/cyanogenmod/setupwizard/setup/MobileDataPage.java
parentc9c13f20c9a86ad23381bef95a100189e0d08bca (diff)
downloadpackages_apps_SetupWizard-ef4cd78d5f5ca98cb2fdaa9e86d564bacb7f5f45.zip
packages_apps_SetupWizard-ef4cd78d5f5ca98cb2fdaa9e86d564bacb7f5f45.tar.gz
packages_apps_SetupWizard-ef4cd78d5f5ca98cb2fdaa9e86d564bacb7f5f45.tar.bz2
SetupWizard: Add metrics for internal builds that ship with CMStats
Change-Id: Id932a105c18332e32605530d1502ff99b7cf380a
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/MobileDataPage.java')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/MobileDataPage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/MobileDataPage.java b/src/com/cyanogenmod/setupwizard/setup/MobileDataPage.java
index d8866bf..de43188 100644
--- a/src/com/cyanogenmod/setupwizard/setup/MobileDataPage.java
+++ b/src/com/cyanogenmod/setupwizard/setup/MobileDataPage.java
@@ -33,6 +33,7 @@ import android.widget.Switch;
import android.widget.TextView;
import com.cyanogenmod.setupwizard.R;
+import com.cyanogenmod.setupwizard.cmstats.SetupStats;
import com.cyanogenmod.setupwizard.ui.SetupPageFragment;
import com.cyanogenmod.setupwizard.util.SetupWizardUtils;
@@ -103,6 +104,9 @@ public class MobileDataPage extends SetupPage {
boolean checked = !mEnableMobileData.isChecked();
SetupWizardUtils.setMobileDataEnabled(getActivity(), checked);
mEnableMobileData.setChecked(checked);
+ SetupStats.addEvent(SetupStats.Categories.SETTING_CHANGED,
+ SetupStats.Action.ENABLE_MOBILE_DATA,
+ SetupStats.Label.CHECKED, String.valueOf(checked));
}
};