summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/settings/WifiCallingSettings.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/settings/WifiCallingSettings.java b/src/com/android/settings/WifiCallingSettings.java
index 24e2db4..62c7b3e 100644
--- a/src/com/android/settings/WifiCallingSettings.java
+++ b/src/com/android/settings/WifiCallingSettings.java
@@ -217,6 +217,11 @@ public class WifiCallingSettings extends SettingsPreferenceFragment
int wfcMode = ImsManager.getWfcMode(context);
updateButtonWfcMode(context, isChecked, wfcMode);
+ if (isChecked) {
+ MetricsLogger.action(getActivity(), getMetricsCategory(), wfcMode);
+ } else {
+ MetricsLogger.action(getActivity(), getMetricsCategory(), -1);
+ }
}
private void updateButtonWfcMode(Context context, boolean wfcEnabled, int wfcMode) {
@@ -241,6 +246,7 @@ public class WifiCallingSettings extends SettingsPreferenceFragment
if (buttonMode != currentMode) {
ImsManager.setWfcMode(context, buttonMode);
mButtonWfcMode.setSummary(getWfcModeSummary(context, buttonMode));
+ MetricsLogger.action(getActivity(), getMetricsCategory(), buttonMode);
}
}
return true;