Use MetricsFeatureProvider for logging in Settings.
Bug: 31664539 Test: make RunSettingsRoboTests for regression Test: adb logcat -b events | egrep "(sysui_|notification_)" for verifying log Change-Id: Id944be7c4ff9911aebee481c2df485542f1318f0
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
package com.android.settings.display;
|
||||
|
||||
import com.android.internal.logging.MetricsLogger;
|
||||
import com.android.internal.logging.MetricsProto.MetricsEvent;
|
||||
|
||||
public class ScreenZoomPreferenceFragmentForSetupWizard
|
||||
@@ -31,8 +30,8 @@ public class ScreenZoomPreferenceFragmentForSetupWizard
|
||||
public void onStop() {
|
||||
// Log the final choice in value if it's different from the previous value.
|
||||
if (mCurrentIndex != mInitialIndex) {
|
||||
MetricsLogger.action(getContext(), MetricsEvent.SUW_ACCESSIBILITY_DISPLAY_SIZE,
|
||||
mCurrentIndex);
|
||||
mMetricsFeatureProvider.action(
|
||||
getContext(), MetricsEvent.SUW_ACCESSIBILITY_DISPLAY_SIZE, mCurrentIndex);
|
||||
}
|
||||
|
||||
super.onStop();
|
||||
|
Reference in New Issue
Block a user