Log visibility change for all fragments.
Bug: 30681771 Test: SettingsUnitTests Refactor visibility logging from InstrumentedFragment into a mixin. And apply mixin in remaining fragments. Change-Id: Ibbb59904336254a3e4bb9e8c7d0b36e5a6bc2622
This commit is contained in:
@@ -43,7 +43,7 @@ public class LocationMode extends LocationSettingsBase
|
||||
private RadioButtonPreference mSensorsOnly;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.LOCATION_MODE;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ public class LocationSettings extends LocationSettingsBase
|
||||
private UserManager mUm;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.LOCATION;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ public class ScanningSettings extends SettingsPreferenceFragment {
|
||||
private static final String KEY_BLUETOOTH_SCAN_ALWAYS_AVAILABLE = "bluetooth_always_scanning";
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.LOCATION_SCANNING;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user