diff options
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 cf66da822..9ba7e92f3 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); |