diff options
author | Chris Wren <cwren@android.com> | 2015-05-08 17:10:01 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2015-05-08 18:48:24 -0400 |
commit | 1b6ffba9e69dc1926e3c4cbcb52d1844c6ccaa32 (patch) | |
tree | cf44c44426a237a1cf08fad5183e6467e2abf5d9 /src/com/android/settings/notification/ZenModeRuleSettingsBase.java | |
parent | c0df6623a0eb0ebbdb965111269b96d9f4a4b976 (diff) | |
download | packages_apps_Settings-1b6ffba9e69dc1926e3c4cbcb52d1844c6ccaa32.zip packages_apps_Settings-1b6ffba9e69dc1926e3c4cbcb52d1844c6ccaa32.tar.gz packages_apps_Settings-1b6ffba9e69dc1926e3c4cbcb52d1844c6ccaa32.tar.bz2 |
log more settings actions
airplane mode
bluetooth
cell data
do not disturb
Bug: 20264417
Change-Id: I726033a126fba9f9dffc916806d636feea04033b
Diffstat (limited to 'src/com/android/settings/notification/ZenModeRuleSettingsBase.java')
-rw-r--r-- | src/com/android/settings/notification/ZenModeRuleSettingsBase.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/notification/ZenModeRuleSettingsBase.java b/src/com/android/settings/notification/ZenModeRuleSettingsBase.java index cf66da8..9ba7e92 100644 --- a/src/com/android/settings/notification/ZenModeRuleSettingsBase.java +++ b/src/com/android/settings/notification/ZenModeRuleSettingsBase.java @@ -36,6 +36,7 @@ import android.view.MenuItem; import android.widget.Switch; import android.widget.Toast; +import com.android.internal.logging.MetricsLogger; import com.android.settings.DropDownPreference; import com.android.settings.R; import com.android.settings.SettingsActivity; @@ -152,6 +153,7 @@ public abstract class ZenModeRuleSettingsBase extends ZenModeSettingsBase if (mDisableListeners) return; final boolean enabled = isChecked; if (enabled == mRule.enabled) return; + MetricsLogger.action(mContext, MetricsLogger.ACTION_ZEN_ENABLE_RULE, enabled); if (DEBUG) Log.d(TAG, "onSwitchChanged enabled=" + enabled); mRule.enabled = enabled; mRule.snoozing = false; @@ -198,6 +200,7 @@ public abstract class ZenModeRuleSettingsBase extends ZenModeSettingsBase public boolean onOptionsItemSelected(MenuItem item) { if (DEBUG) Log.d(TAG, "onOptionsItemSelected " + item.getItemId()); if (item.getItemId() == R.id.delete) { + MetricsLogger.action(mContext, MetricsLogger.ACTION_ZEN_DELETE_RULE); showDeleteRuleDialog(); return true; } @@ -234,6 +237,7 @@ public abstract class ZenModeRuleSettingsBase extends ZenModeSettingsBase .setPositiveButton(R.string.zen_mode_delete_rule_button, new OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { + MetricsLogger.action(mContext, MetricsLogger.ACTION_ZEN_DELETE_RULE_OK); mDeleting = true; mConfig.automaticRules.remove(mRuleId); setZenModeConfig(mConfig); |