diff options
author | cretin45 <cretin45@gmail.com> | 2015-03-04 13:06:26 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2015-03-04 13:08:00 -0800 |
commit | ef4cd78d5f5ca98cb2fdaa9e86d564bacb7f5f45 (patch) | |
tree | fe4c0d9d9c958856d789f7d6740274d8516ac4d3 /src/com/cyanogenmod/setupwizard/setup/WelcomePage.java | |
parent | c9c13f20c9a86ad23381bef95a100189e0d08bca (diff) | |
download | packages_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/WelcomePage.java')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/WelcomePage.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/WelcomePage.java b/src/com/cyanogenmod/setupwizard/setup/WelcomePage.java index e919267..1f63878 100644 --- a/src/com/cyanogenmod/setupwizard/setup/WelcomePage.java +++ b/src/com/cyanogenmod/setupwizard/setup/WelcomePage.java @@ -30,6 +30,7 @@ import android.widget.ArrayAdapter; import android.widget.NumberPicker; import com.cyanogenmod.setupwizard.R; +import com.cyanogenmod.setupwizard.cmstats.SetupStats; import com.cyanogenmod.setupwizard.ui.LocalePicker; import com.cyanogenmod.setupwizard.ui.SetupPageFragment; @@ -72,6 +73,10 @@ public class WelcomePage extends SetupPage { ActivityOptions.makeCustomAnimation(mContext, android.R.anim.fade_in, android.R.anim.fade_out); + SetupStats.addEvent(SetupStats.Categories.BUTTON_CLICK, SetupStats.Label.EMERGENCY_CALL); + SetupStats.addEvent(SetupStats.Categories.EXTERNAL_PAGE_LOAD, + SetupStats.Action.EXTERNAL_PAGE_LAUNCH, + SetupStats.Label.PAGE, SetupStats.Label.EMERGENCY_CALL); mContext.startActivity(intent, options.toBundle()); return true; } @@ -158,6 +163,9 @@ public class WelcomePage extends SetupPage { localResources.updateConfiguration(localConfiguration1, null); mHandler.removeCallbacks(mUpdateLocale); mCurrentLocale = paramLocale; + SetupStats.addEvent(SetupStats.Categories.SETTING_CHANGED, + SetupStats.Action.CHANGE_LOCALE, SetupStats.Label.LOCALE, + mCurrentLocale.getDisplayName()); mHandler.postDelayed(mUpdateLocale, 1000); } |