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:
@@ -134,7 +134,7 @@ public class AccountSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCOUNT;
|
||||
}
|
||||
|
||||
|
@@ -145,7 +145,7 @@ public class AccountSyncSettings extends AccountPreferenceBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCOUNTS_ACCOUNT_SYNC;
|
||||
}
|
||||
|
||||
|
@@ -93,7 +93,7 @@ public class ChooseAccountActivity extends SettingsPreferenceFragment {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCOUNTS_CHOOSE_ACCOUNT_ACTIVITY;
|
||||
}
|
||||
|
||||
|
@@ -88,7 +88,7 @@ public class ManageAccountsSettings extends AccountPreferenceBase
|
||||
private Account mFirstAccount;
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsEvent.ACCOUNTS_MANAGE_ACCOUNTS;
|
||||
}
|
||||
|
||||
|
@@ -118,7 +118,7 @@ public class ManagedProfileSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getMetricsCategory() {
|
||||
public int getMetricsCategory() {
|
||||
return MetricsProto.MetricsEvent.ACCOUNTS_WORK_PROFILE_SETTINGS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user